Commit Graph

39612 Commits

Author SHA1 Message Date
Jason Merrill
27aeb83f88 remove xfail
From-SVN: r48156
2001-12-18 09:50:37 -05:00
Nathan Sidwell
3ad9778947 pt.c (instantiate_clone): Remove, fold into ...
* pt.c (instantiate_clone): Remove, fold into ...
	(instantiate_template): ... here. Simplify by removing mutual
	recursion.
	* typeck2.c (build_m_component_ref): Don't cv qualify the function
	pointed to by a pointer to function.
	* class.c (delete_duplicate_fields_1): Typo.

From-SVN: r48155
2001-12-18 14:13:46 +00:00
Jason Merrill
f21add0737 C++ ABI change: destroy value arguments in caller.
* calls.c (initialize_argument_information): Pass the address of
        the TARGET_EXPR temporary rather than storing it into another.
        * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
        create an extra binding level for the parameters.
        * decl.c (store_parm_decls): Don't do parameter cleanups.

From-SVN: r48154
2001-12-18 08:30:30 -05:00
Richard Kenner
769317c56d Fix spelling error
From-SVN: r48153
2001-12-18 07:16:41 -05:00
Douglas B Rupp
7d5863fb0b xm-vms.h (INCLUDE_DEFAULTS): Add /gnu/include.
* config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Add /gnu/include.
	* config/alpha/vms.h (STACK_CHECK_BUILTIN): #define 0 for VMS.

From-SVN: r48152
2001-12-18 07:15:41 -05:00
Paolo Carlini
c448ca845c basic_string.h (assign(__str, __pos, __n)): Call assign(__s, __n).
2001-12-18  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

	* include/bits/basic_string.h (assign(__str, __pos, __n)):
	Call assign(__s, __n).
	(assign(__s, __n)): Terminate the string with _S_terminal.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r48151
2001-12-18 12:06:01 +00:00
Nathan Sidwell
ea50ad828c call.c (build_new_method_call): Use '%#V'.
* call.c (build_new_method_call): Use '%#V'.
	* error.c (cv_to_string): Use V parameter to determine padding.

From-SVN: r48150
2001-12-18 11:51:05 +00:00
Jakub Jelinek
b25c3a22e3 linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
* config/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
	* config/sparc/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
	* config/sparc/linux64.h (PREFERRED_DEBUGGING_TYPE): Remove.
	(CC1_SPEC): Don't default to -gstabs+ if -m32.

	* elfos.h (PREFERRED_DEBUGGING_TYPE): Change to DWARF2_DEBUG.

From-SVN: r48149
2001-12-18 11:42:32 +01:00
Joseph Myers
3855d0d17f gcc.pot: Regenerate.
* po/gcc.pot: Regenerate.

cp:
	* call.c, decl2.c, init.c: Use "built-in" and "bit-field"
	spellings in messages.

From-SVN: r48148
2001-12-18 09:36:02 +00:00
GCC Administrator
5faa1c16ac Daily bump.
From-SVN: r48147
2001-12-18 08:16:44 +00:00
Benjamin Kosnik
8d33a04d8b std_limits.h (__glibcpp_long_double_is_bounded): Set to true, like float and double.
2001-12-17  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/std_limits.h (__glibcpp_long_double_is_bounded):
	Set to true, like float and double.

From-SVN: r48145
2001-12-18 06:57:28 +00:00
Tom Tromey
40aba207b1 * libjava.lang/PR3731.xfail: Removed.
From-SVN: r48144
2001-12-18 05:18:38 +00:00
Kazu Hirata
9bf7ec4ebb h8300.c: Fix comment typos.
* config/h8300/h8300.c: Fix comment typos.
	* config/h8300/h8300.h: Fix comment formatting.

From-SVN: r48143
2001-12-18 05:12:29 +00:00
Tom Tromey
bf768dd17b Inspired by PR java/5057:
* libjava.lang/PR5057_2.java: New file.
	* libjava.lang/PR5057_2.out: New file.

From-SVN: r48142
2001-12-18 04:59:18 +00:00
Tom Tromey
ced816d5e6 For PR java/5057:
* libjava.lang/PR5057.out: New file.
	* libjava.lang/PR5057.java: New file.

From-SVN: r48141
2001-12-18 04:38:04 +00:00
Zack Weinberg
33bd39a26a cp-tree.h: Delete #defines for cp_error, cp_warning, cp_pedwarn, and cp_compiler_error.
* cp-tree.h: Delete #defines for cp_error, cp_warning,
	cp_pedwarn, and cp_compiler_error.
	* call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
	except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
	rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
	typeck2.c: Change calls to the above macros to use their
	language-independent equivalents: error, warning, pedwarn, and
	internal_error respectively.

From-SVN: r48140
2001-12-18 03:35:42 +00:00
Kaveh R. Ghazi
86460bab02 machmode.h (mode_name, [...]): Set array size in declaration to NUM_MACHINE_MODES.
* machmode.h (mode_name, mode_class, mode_size, mode_unit_size,
	mode_bitsize, mode_mask_array, mode_wider_mode): Set array size in
	declaration to NUM_MACHINE_MODES.
	(mode_size, mode_unit_size): Set array type to unsigned char.
	(mode_bitsize): Set array type to unsigned short.

	* rtl.c (rtx_length): Set array type to unsigned char.
	(rtx_length, rtx_name, rtx_format, rtx_class): Set array size to
	NUM_RTX_CODE.
	(mode_bitsize): Set array type to unsigned short.
	(mode_size, mode_unit_size): Set array type to unsigned char.
	(mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size,
	mode_wider_mode, mode_mask_array): Set array size to
	NUM_MACHINE_MODES.

	* rtl.h (rtx_length, rtx_name, rtx_format, rtx_class): Set array
	size in declaration to NUM_RTX_CODE.

From-SVN: r48139
2001-12-18 02:37:06 +00:00
Richard Henderson
29b06e3587 * config/alpha/alpha.md (unop): Encode RB as $sp.
From-SVN: r48137
2001-12-17 16:26:56 -08:00
Geert Bosch
3a77b68d5f gnat_rm.texi: Fix minor typos.
* gnat_rm.texi: Fix minor typos. Found while reading the section
	regarding "Bit_Order Clauses" that was sent to a customer.
	Very interesting documentation!

	* sem_case.adb (Choice_Image): Avoid creating improper character
	literal names by using the routine Set_Character_Literal_Name. This
	fixes bombs in certain error message cases.

	* a-reatim.adb: Minor reformatting.

	* sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
	case where the formal is an extension of another formal in the current
	unit or in a parent generic unit.

	* s-tposen.adb: Update comments.  Minor reformatting.
	Minor code clean up.

	* s-tarest.adb: Update comments.  Minor code reorganization.

	* exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
	when Java_VM.

	* exp_attr.adb: Minor reformatting

	* sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
	derivations nested within a child unit: verify that the parent
	type is declared in an outer scope.

	* sem_ch12.adb: Minor reformatting

	* sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
	warning if current unit is a predefined one, from which bodies may
	have been deleted.

	* eval_fat.ads: Add comment that Round_Even is referenced in Ada code
	Fix header format. Add 2001 to copyright date.

	* exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
	which caused CE during compilation if checks were enabled.

From-SVN: r48136
2001-12-18 01:03:38 +01:00
Geert Bosch
ced7d98b9b * einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.
From-SVN: r48135
2001-12-18 00:36:51 +01:00
Neil Booth
3b27886e3f Makefile.in: Update dependencies.
* Makefile.in: Update dependencies.
	* c-lang.c: Remove unnecessary includes.
	(deferred_fns, start_cdtor, finish_cdtor, defer_fn): Move to
	c-objc-common.c.
	(finish_file): Move body to c_common_finish_file.
	* c-objc-common.c: Include varray.h and ggc.h.
	(deferred_fns, start_cdtor, finish_cdtor, defer_fn,
	expand_deferred_fns, c_objc_common_finish_file): Moved from c-lang.c.
	(c_objc_common_init): Initialize deferred function array.
	* c-tree.h (c_objc_common_finish_file,
	static_ctors, static_dtors): New.
objc:
	* Make-lang.in: Update dependencies.
	* objc/objc-act.c: Don't include varray.h.
	(defer_fn, deferred_fns): Move to c-objc-common.c.
	(objc_init): Similarly for initialization of it.
	(finish_file): Move some to c-objc-common.c, use
	c_objc_common_finish_file.

From-SVN: r48134
2001-12-17 22:43:55 +00:00
David Billinghurst
9e78e45a8d prune.exp: New file
2001-12-17  David Billinghurst <David.Billinghurst@riotinto.com>

	libstdc++/5136
	* testsuite/lib/prune.exp: New file
	* testsuite/lib/libstdc++-v3-dg.exp: Use it

From-SVN: r48133
2001-12-17 22:39:00 +00:00
Aldy Hernandez
ee54071454 rs6000.c: Remove is_gpr_return_reg prototype.
2001-12-17  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c: Remove is_gpr_return_reg prototype.

From-SVN: r48132
2001-12-17 22:33:39 +00:00
Neil Booth
dee0382852 * doc/cppinternals.texi: Update.
From-SVN: r48130
2001-12-17 21:57:16 +00:00
Jeff Law
2d628c257e * gcc.c-torture/execute/20011217-1.c: New test.
From-SVN: r48129
2001-12-17 14:29:28 -07:00
Jeff Law
8f08e8c010 expmed.c (emit_store_flag): Extract updated comparison code from the return value of compare_from_rtx.
* expmed.c (emit_store_flag): Extract updated comparison code
        from the return value of compare_from_rtx.
        * expr.c (do_store_flag): Similarly.

From-SVN: r48128
2001-12-17 14:20:03 -07:00
Geert Bosch
79503fdd33 * make.adb:
(Switches_Of): New function
	(Test_If_Relative_Path): New procedure
	(Add_Switches): Use new function Switches_Of
	(Collect_Arguments_And_Compile): Use new function Switches_Of.
	When using a project file, test if there are any relative
	search path. Fail if there are any.
	(Gnatmake): Only add switches for the primary directory when not using
	a project file. When using a project file, change directory to the
	object directory of the main project file. When using a project file,
	test if there are any relative search path. Fail if there are any.
	When using a project file, fail if specified executable is relative
	path with directory information, and prepend executable, if not
	specified as an absolute path, with the exec directory.  Make sure
	that only one -o switch is transmitted to the linker.

	* prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir

	* prj-nmsc.adb:
	(Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
	when using a non standard naming scheme.
	(Check_Ada_Naming_Scheme): Make sure that error messages
	do not raise exceptions.
	(Is_Illegal_Append): Return True if there is no dot in the suffix.
	(Language_Independent_Check): Check the exec directory.

	* prj.adb (Project_Empty): Add new component Exec_Directory

	* prj.ads:
	(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
	(Project_Data): Add component Exec_Directory

	* snames.adb: Updated to match snames.ads revision 1.215

	* snames.ads: Added Exec_Dir

	* make.adb: Minor reformatting

	* prj-nmsc.adb: Minor reformatting

	* snames.adb: Updated to match snames.ads

	* snames.ads: Alphebetize entries for project file

	* trans.c (process_freeze_entity): Do nothing if the entity is a
	subprogram that was already elaborated.

	* decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
	and Esize if object is referenced via pointer.

From-SVN: r48127
2001-12-17 22:19:32 +01:00
Geert Bosch
855ff2e1e4 sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant is discrete before analyzing choices.
* sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
	is discrete before analyzing choices.

	* bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
	containing the name of the Ada Main Program. This string is mainly
	intended for the debugger.
	(Gen_Output_File_C): Do the equivalent change when generating a C file.

	* ali.adb: Set new Dummy_Entry field in dependency entry

	* ali.ads: Add Dummy_Entry field to source dependency table

	* bcheck.adb (Check_Consistency): Ignore dummy D lines

	* lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files

	* lib-writ.ads: Document dummy D lines for missing files.

	* types.ads: (Dummy_Time_Stamp): New value for non-existant files

From-SVN: r48126
2001-12-17 22:07:05 +01:00
Geert Bosch
c1c22e7a70 ali.adb: Type reference does not reset current file.
* ali.adb: Type reference does not reset current file.

	* ali.adb: Recognize and scan renaming reference

	* ali.ads: Add spec for storing renaming references.

	* lib-xref.ads: Add documentation for handling of renaming references

	* lib-xref.adb: Implement output of renaming reference.

	* checks.adb:
	(Determine_Range): Document local variables
	(Determine_Range): Make sure Hbound is initialized. It looks as though
	 there could be a real problem here with an uninitialized reference
	 to Hbound, but no actual example of failure has been found.

	* g-socket.ads:
	Fix comment of Shutdown_Socket and Close_Socket. These functions
	should not fail silently because if they are called twice, this
	probably means that there is a race condition in the user program.
	Anyway, this behaviour is consistent with the rest of this unit.
	When an error occurs, an exception is raised with the error message
	as exception message.

From-SVN: r48125
2001-12-17 22:00:59 +01:00
Robert Dewar
7eb7bb079d frontend.adb: Move call to Check_Unused_Withs from Frontend...
* frontend.adb: Move call to Check_Unused_Withs from Frontend, so
	that it happens before modification of Sloc values for -gnatD.

	* gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
	so that it happens before modification of Sloc values for -gnatD.

	* switch.adb: Minor reformatting

From-SVN: r48124
2001-12-17 21:51:30 +01:00
Geert Bosch
b1085d2daa prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_...
* prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
	Default_Ada_...

	* prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
	Remove functions.
	(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.

	* prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
	Remove functions.
	(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.

From-SVN: r48123
2001-12-17 21:50:03 +01:00
Nick Clifton
d6c1ace7a3 oops - omitted from previous delta.
From-SVN: r48122
2001-12-17 20:02:02 +00:00
Joseph Myers
0b0aff5ca8 * doc/install.texi2html: Use -I $SOURCEDIR.
From-SVN: r48121
2001-12-17 19:42:57 +00:00
Joseph Myers
f488ffcb5d update_web_docs: Use makeinfo --html instead of texi2html.
* update_web_docs: Use makeinfo --html instead of texi2html.
	Remove support for pre-3.1 GCC versions.  Build online docs for
	gccint manual.

From-SVN: r48120
2001-12-17 19:39:22 +00:00
Joseph Myers
b11cc61089 Separate user and internals manuals.
* Makefile.in (info, $(docdir)/gcc.info, dvi, gcc.dvi): Update
	dependencies.
	($(docdir)/gccint.info, gccint.dvi): New targets.
	(maintainer-clean, install-info, uninstall): Update.
	* doc/.cvsignore: Add gccint.info*.
	* doc/include/gcc-common.texi: New file.
	* doc/gcc.texi: Use it.  Adjust to be a user-only manual.  Put
	copyright notice in a macro.  Don't include ISBN unless FSFPRINT
	is defined.
	* doc/gccint.texi: New file.
	* doc/configfiles.texi, doc/extend.texi, doc/invoke.texi,
	doc/md.texi, doc/passes.texi, doc/tm.texi, doc/trouble.texi:
	Update for separate user and internals manuals.

f:
	* g77.texi, invoke.texi: Update links to GCC manual.

java:
	* gcj.texi: Update link to GCC manual.

From-SVN: r48119
2001-12-17 19:20:05 +00:00
Tom Tromey
e97562f5ce parse.y (link_nested_class_to_enclosing): Removed useless statement.
* parse.y (link_nested_class_to_enclosing): Removed useless
	statement.

From-SVN: r48118
2001-12-17 19:14:07 +00:00
Dale Johannesen
fd3b43f286 rs6000.h: CPP_CPU_SPEC: add mcpu=7400.
* config/rs6000/rs6000.h:  CPP_CPU_SPEC: add mcpu=7400.
         ASM_CPU_SPEC: Ditto.
         RTX_COSTS: Fix timing info for 7450 multiply.
         * config/rs6000/rs6000.md:  Fix timing info for 7450 imul.
         Allow floats to be kept in int regs in movsf_low,
         movsf_low_st (Darwin only)

From-SVN: r48117
2001-12-17 19:11:13 +00:00
Aldy Hernandez
9aa86737a8 rs6000.c (vrsave_operation): Recognize SETs in parallel.
2001-12-17  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (vrsave_operation): Recognize SETs in
        parallel.
        (is_gpr_return_reg): New.
        (rs6000_emit_prologue): Call generate_set_vrsave with additional
        argument.  Save only registers in the mask.  Attach
        REG_FRAME_RELATED_EXPR note to altivec offsets.  Do not call
        rs6000_frame_related when saving VRSAVE.
        (rs6000_emit_epilogue): Call generate_set_vrsave with additional
        argument.  Restore only registers in the mask.  Restore altivec
        registers after we restore CR.
        (generate_set_vrsave): New parameter epiloguep.  Generate unspec
        sets instead of clobbers for call saved registers.
        (altivec_frame_fixup): New.

From-SVN: r48116
2001-12-17 19:05:43 +00:00
Richard Henderson
c453325c72 sparc.md (movdi_zero): Remove.
* config/sparc/sparc.md (movdi_zero): Remove.
        (movdi_insn_sp32_v9): New.

From-SVN: r48115
2001-12-17 10:40:10 -08:00
Richard Henderson
c04cf67b3f cfgcleanup.c (outgoing_edges_match): Check for insn match with a single outgoing edge too.
* cfgcleanup.c (outgoing_edges_match): Check for insn match with
        a single outgoing edge too.

From-SVN: r48114
2001-12-17 10:21:36 -08:00
Jan Hubicka
25b44be580 cfgrtl.c (redirect_edge_and_branch): Do simplify abnormal edges resulting from computed jump
* cfgrtl.c (redirect_edge_and_branch):  Do simplify abnormal
	edges resulting from computed jump

From-SVN: r48113
2001-12-17 17:56:04 +00:00
Joseph Myers
f438273e10 update_web_docs_old: Copy from update_web_docs.
* update_web_docs_old: Copy from update_web_docs.  Add comment
	that this is for GCC 3.0.x and earlier versions.

From-SVN: r48112
2001-12-17 17:35:01 +00:00
Nicola Pero
18c8746d13 New test for loading unclaimed categories in Objective-C
From-SVN: r48111
2001-12-17 17:27:08 +00:00
Nicola Pero
e5e0f6f539 Fixed bug in loading of categories under certain special circumstances
From-SVN: r48110
2001-12-17 17:23:09 +00:00
Jan Hubicka
8ecba28a99 Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
* Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
	* basic-block.h (CLEANUP_THREADING): New constant.
	* cfgcleanup.c: Include cselib.h
	(thread_jump, mark_effect): New functions.
	(try_forward_edges): Do jump threading when asked for.
	* jump.c (mark_modified_reg, save_regs, num_same_regs, modified_regs,
	modified_mem, thread_jumps, rtx_equal_for-thread_p): Kill.
	* rtl.h (thread_jumps, rtx_equal_for_thread_p): Kill.
	* toplev.c (rest_of_compilation): Do now call thread_jumps; use
	CLEANUP_THREAD instead.

From-SVN: r48108
2001-12-17 17:10:34 +00:00
Phil Edwards
e9c46bb75e basic_file.h (__basic_file::fd): New function.
2001-12-17  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/basic_file.h (__basic_file::fd):  New function.
	* config/io/basic_file_stdio.h (__basic_file::fd):  Define.
	* include/bits/std_fstream.h (basic_filebuf::fd):  New function.
	* include/bits/fstream.tcc (basic_filebuf::fd):  Define.
	* testsuite/27_io/filebuf_members.cc (test_02):  New test.

From-SVN: r48107
2001-12-17 17:08:57 +00:00
Jan Hubicka
af19c653a8 Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
* Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
	* basic-block.h (CLEANUP_THREADING): New constant.
	* cfgcleanup.c: Include cselib.h
	(thread_jump, mark_effect): New functions.
	(try_forward_edges): Do jump threading when asked for.
	* jump.c (mark_modified_reg, save_regs, num_same_regs, modified_regs,
	modified_mem, thread_jumps, rtx_equal_for-thread_p): Kill.
	* rtl.h (thread_jumps, rtx_equal_for_thread_p): Kill.
	* toplev.c (rest_of_compilation): Do now call thread_jumps; use
	CLEANUP_THREAD instead.

From-SVN: r48106
2001-12-17 17:01:35 +00:00
Joseph Myers
f02240b65f * MAINTAINERS: Add self as docs co-maintainer.
From-SVN: r48105
2001-12-17 16:52:28 +00:00
Nick Clifton
3dcc68a44a Implement MODE_BASE_REG_CLASS
From-SVN: r48104
2001-12-17 16:46:11 +00:00
Kaveh R. Ghazi
bc8224a5e9 * sparc/linux.h (STARTFILE_SPEC): Fix typo in last change.
From-SVN: r48103
2001-12-17 16:32:19 +00:00