Commit Graph

48586 Commits

Author SHA1 Message Date
Hans Boehm
adf936a606 * java/lang/natObject.cc (JV_SYNC_HASH): replace signed % by &.
From-SVN: r64386
2003-03-15 01:04:08 +00:00
GCC Administrator
af2e51f395 Daily bump.
From-SVN: r64385
2003-03-15 00:17:09 +00:00
Neil Booth
255c10b1a7 c-opts.c (finish_options): New.
* c-opts.c (finish_options): New.
	(COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
	(missing_arg): Handle OPT_include and OPT_imacros.
	(c_common_init, c_common_parse_file): Use finish_options.
	(handle_deferred_opts): Update.
	* cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
	(cpp_finish_options): Don't handle -imacros here.
	(no_fil): Remove.
	(COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.

From-SVN: r64378
2003-03-14 23:47:24 +00:00
Jakub Jelinek
027fbf43fb rs6000.c (rs6000_emit_load_toc_table): Don't call rs6000_maybe_dead if !fromprolog.
* config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
	rs6000_maybe_dead if !fromprolog.

From-SVN: r64376
2003-03-14 23:58:43 +01:00
Benjamin Kosnik
015cc81832 stdc++.h: New.
2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/stdc++.h: New.
	* libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
	* include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
        * include/Makefile.in: Regenerate.
        * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
	(--cxxflags): Put -g -O2 here.
	* testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.

From-SVN: r64375
2003-03-14 22:17:26 +00:00
Benjamin Kosnik
628c731a48 stdc++.h: New.
2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/stdc++.h: New.
	* libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
	* include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
        * include/Makefile.in: Regenerate.
        * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
	(--cxxflags): Put -g -O2 here.
	* testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.

From-SVN: r64374
2003-03-14 22:16:06 +00:00
Neil Booth
23345bbbcc /home/neil/diffs/include.log
From-SVN: r64373
2003-03-14 21:47:50 +00:00
Loren J. Rittle
98d2dec7e3 testsuite_hooks.h: Suppress runtime exception thrown by missing named locale.
* testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
	missing named locale.

From-SVN: r64372
2003-03-14 21:41:26 +00:00
Loren J. Rittle
18a3ddd71a Makefile.in (.y.c): Only enable production rule when maintaining.
* Makefile.in (.y.c): Only enable production rule when
	maintaining.

From-SVN: r64371
2003-03-14 21:36:28 +00:00
Nathanael Nerode
93c834b7d7 Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
	* Makefile.in: Regenerate.

From-SVN: r64370
2003-03-14 20:44:37 +00:00
Jan Hubicka
cd648cec5c cselib.c (clear_table): Do not take argument; always clear just used slots.
* cselib.c (clear_table): Do not take argument; always clear just
	used slots.
	(cselib_process_insn):  Update call of clear_table
	(cselib_init): Do not call clear_table.
	(cselib_finish): Clear table.

	* cse.c (count_reg_usage): Do not check side_effects_p.
	* rtlanal.c (set_noop_p): Check side_effects_p only when set looks
	like noop.
	(find_reg_equal_equiv_note): Do not use find_reg_note.

From-SVN: r64369
2003-03-14 20:15:13 +00:00
Michael Chastain
82c34dcb17 * Makefile.in: Regenerate with correct Makefile.def.
From-SVN: r64368
2003-03-14 14:18:21 -05:00
Richard Henderson
35d9c40302 re PR target/9700 ([alpha linux] va_start gets __offset wrong in some situations)
PR target/9700
        * config/alpha/alpha.c (alpha_va_start): Account for
        current_function_pretend_args_size in the AP offset.

        * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
        (INITIAL_ELIMINATION_OFFSET): Move out of line.
        * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
        (alpha_initial_elimination_offset) New.
        * config/alpha/alpha-protos.h: Update.

	* gcc.c-torture/execute/va-arg-23.c: New.

From-SVN: r64367
2003-03-14 09:58:48 -08:00
Jakub Jelinek
f43f4314a1 stmt.c (expand_start_case): Call emit_queue ().
* stmt.c (expand_start_case): Call emit_queue ().

	* gcc.c-torture/execute/20030313-1.c: New test.

From-SVN: r64366
2003-03-14 18:53:51 +01:00
Richard Henderson
4526753fac * gcc.dg/inline-2.c: Adjust alpha test for external call.
From-SVN: r64365
2003-03-14 09:49:12 -08:00
Chris Demetriou
a0a89ed0af mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2 words in new abis.
* config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
words in new abis.

From-SVN: r64364
2003-03-14 15:53:48 +00:00
Andreas Schwab
8d3f82aa3a configure.in: Only append to makefiles that are newly created to avoid multiple...
2003-03-14  Andreas Schwab  <schwab@suse.de>

	* configure.in: Only append to makefiles that are newly created to
	avoid multiple multi-do/multi-clean rules.
	* configure: Rebuilt.

From-SVN: r64363
2003-03-14 15:12:06 +00:00
Eric Botcazou
f650843fc3 re PR rtl-optimization/8396 ([sparc] optimizer ICE)
PR optimization/8396
	* tree-inline.c (initialize_inlined_parameters): Make sure the value
	of read-only constant arguments is passed with the right type.

From-SVN: r64358
2003-03-14 14:49:40 +00:00
Jeroen Frijters
70e2e8dc1d ObjectInputStream.java (readObject): Cleaned up the class hierarchy loop.
2003-02-14  Jeroen Frijters  <jeroen@sumatra.nl>

       * java/io/ObjectInputStream.java (readObject): Cleaned up the class
       hierarchy loop.
       (readFields(Object,ObjectStreamField[],boolean)): Changed argument
       list to Object,ObjectStreamClass, moved callReadMethod code up into
       readObject and added Class argument to all setXxxField calls.
       (callReadMethod): Changed Class argument to ObjectStreamClass to be
       consistent with ObjectOutputStream and to facilitate caching the
       Method in the future.
       (setBooleanField): Added Class argument.
       (setByteField): Likewise.
       (setCharField): Likewise.
       (setDoubleField): Likewise.
       (setFloatField): Likewise.
       (setIntField): Likewise.
       (setLongField): Likewise.
       (setShortField): Likewise.
       (setObjectField): Likewise.
       * java/io/ObjectOutputStream.java (writeObject): Cleaned up the
       class hierarchy loop.
       (defaultWriteObject): Call writeFields with new argument list.
       (writeFields(Object,ObjectStreamField[],boolean): Changed argument
       list to Object,ObjectStreamClass, moved callWriteMethod up into
       writeObject and added Class argument to all getXxxField calls.
       (callWriteMethod): Added ObjectStreamClass argument to be able to
       get the proper class to call getMethod on (each class can have (or
       not have) its own writeObject method).
       (getBooleanField): Added Class argument.
       (getByteField): Likewise.
       (getCharField): Likewise.
       (getDoubleField): Likewise.
       (getFloatField): Likewise.
       (getIntField): Likewise.
       (getLongField): Likewise.
       (getShortField): Likewise.
       (getObjectField): Likewise.
       * java/io/ObjectStreamClass.java (hasReadMethod): Added method to
       facilitate caching the Method object in the future.

From-SVN: r64351
2003-03-14 11:54:38 +00:00
Steven Bosscher
a721a60143 * doc/extend.texi (Function Names): Make the example compilable.
From-SVN: r64350
2003-03-14 08:47:05 +00:00
David Edelsohn
a12f82908a rs6000.c (processor_target_table): Really allow GP optional instructions on Power4.
* config/rs6000/rs6000.c (processor_target_table): Really allow
        GP optional instructions on Power4.

From-SVN: r64348
2003-03-13 23:30:29 -05:00
Roger Sayle
36dbb93d9f calls.c (flags_from_decl_or_type): Factor and remove redundant conditional tests.
* calls.c (flags_from_decl_or_type): Factor and remove redundant
	conditional tests.

From-SVN: r64347
2003-03-14 01:59:16 +00:00
GCC Administrator
7733611d0c Daily bump.
From-SVN: r64345
2003-03-14 00:17:40 +00:00
Danny Smith
67e4f07820 dll-1.c: Remove thumb target.
* gcc.dg/dll-1.c: Remove thumb target. Change exp to _exp.
	* gcc.dg/dll-2.c: Enable for cygwin and mingw. Remove
	thumb target,
	* gcc.dg/dll-3.c: Likewise. Adjust scan-assembler
	to accept newer _imp__	prefix and additional
	newline in .drectve section.
	* gcc.dg/dll-4.c: Likewise.
	* gcc.dg/dll-5.c: New file to test -mnop-fun-dllimport
	switch.

From-SVN: r64337
2003-03-13 22:21:21 +00:00
Jason Merrill
0171b21c32 re PR c++/9420 (incomplete type incorrectly reported)
PR c++/9420
        * search.c (lookup_conversions): Call complete_type here.
        * call.c (implicit_conversion): Not here.

From-SVN: r64332
2003-03-13 16:39:38 -05:00
Mark Mitchell
45707d3120 decl2.c (do_nonmember_using_decl): Correct handling of simultaneous type/non-type bindings.
* decl2.c (do_nonmember_using_decl): Correct handling of
	simultaneous type/non-type bindings.


	* g++.dg/parse/namespace9.C: New test.

From-SVN: r64323
2003-03-13 20:54:36 +00:00
Jason Merrill
6d7b8b3509 re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191)
PR c++/9336
        * decl2.c (lookup_arg_dependent): Handle error_mark_node.

[[Split portion of a mixed commit.]]

From-SVN: r64322.2
2003-03-13 15:45:22 -05:00
Mark Mitchell
3033f0ede8 Fix typo in ChangeLog
From-SVN: r64321
2003-03-13 20:36:46 +00:00
Mike Stump
c4775f821f ggc-page.c (struct page_entry): Remove varray.h header.
* ggc-page.c (struct page_entry): Remove varray.h header.
        Add index_by_depth field.
        Remove save_in_use_p field.
        (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
        by_depth_max, by_depth, and save_in_use fields.
        (INITIAL_PTE_COUNT): Add.
        (save_in_use_p_i): Add.
        (save_in_use_p): Add.
        (adjust_depth): Add.
        (move_ptes_to_front): Add.
        (push_depth): Add.
        (push_by_depth): Add.
        (prefetch): Add.
        (free_page): Add support for and use faster data structures.
        (ggc_alloc): Likewise.
        (init_ggc): Likewise.
        (ggc_recalculate_in_use_p): Likewise.
        (ggc_pop_context): Likewise.
        (clear_marks): Likewise.
        (ggc_pch_read): Likewise.
        * Makefile.in (ggc-page.o): Remove varray.h.

From-SVN: r64320
2003-03-13 20:19:03 +00:00
Mark Mitchell
26f8647153 call.c (initialize_reference): Remove bogus assertion.
* call.c (initialize_reference): Remove bogus assertion.
	* decl.c (build_ptrmemfunc_type): Revert change of 2003-03-09.

	* g++.dg/init/ref5.C: New test.
	* g++.dg/parse/ptrmem1.C: Likewise.

From-SVN: r64316
2003-03-13 19:57:12 +00:00
Nathanael Nerode
7210d5ae56 ChangeLog: Rotated last year's entries to...
* ChangeLog: Rotated last year's entries to...
	* ChangeLog.8: New.

From-SVN: r64315
2003-03-13 19:20:26 +00:00
Tom Tromey
2f29e5e867 parse.y (resolve_inner_class): Error if qualifier is a primitive type.
* parse.y (resolve_inner_class): Error if qualifier is a primitive
	type.

From-SVN: r64314
2003-03-13 18:35:01 +00:00
Nathanael Nerode
3bed29309b fde-glibc.c, [...]: It's GCC, not GNU CC.
* config/ia64/fde-glibc.c, config/ia64/freebsd.h,
	config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
	config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
	config/ia64/ia64-protos.h, config/ia64/ia64.c,
	config/ia64/ia64.h, config/ia64/ia64.md,
	config/ia64/itanium1.md, config/ia64/itanium2.md,
	config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
	config/ia64/unwind-ia64.h: It's GCC, not GNU CC.

From-SVN: r64313
2003-03-13 18:26:30 +00:00
Jonathan Wakely
21c93c390d configopts.html, [...]: Fix invalid XHTML and make page header style consistent.
2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/configopts.html, docs/html/documentation.html,
	docs/html/explanations.html, docs/html/install.html,
	docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
	invalid XHTML and make page header style consistent.

From-SVN: r64312
2003-03-13 18:26:23 +00:00
Nick Clifton
13eedc5ac6 output_return_instruction: Simplyify test for avoiding type 2 LDMs.
From-SVN: r64311
2003-03-13 16:55:35 +00:00
Ansgar Esztermann
1cff896449 Makefile.in (dojump.o): New target.
2003-03-13  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>

	* Makefile.in (dojump.o): New target.

	* dojump.c: New file.
	(init_pending_stack_adjust): Moved here from expr.c.
	(clear_pending_stack_adjust): Likewise.
	(do_pending_stack_adjust): Likewise.
	(jumpifnot): Likewise.
	(jumpif): Likewise.
	(do_jump): Likewise.
	(do_jump_by_parts_greater): Likewise.
	(do_jump_by_parts_greater_rtx): Likewise.
	(do_jump_by_parts_equality): Likewise.
	(do_jump_by_parts_equality_rtx): Likewise.
	(compare_from_rtx): Likewise.
	(do_compare_rtx_and_jump): Likewise.
	(do_compare_and_jump): Likewise.

	* expr.c (init_pending_stack_adjust): Removed to dojump.c.
	(clear_pending_stack_adjust): Likewise.
	(do_pending_stack_adjust): Likewise.
	(jumpifnot): Likewise.
	(jumpif): Likewise.
	(do_jump): Likewise.
	(do_jump_by_parts_greater): Likewise.
	(do_jump_by_parts_greater_rtx): Likewise.
	(do_jump_by_parts_equality): Likewise.
	(do_jump_by_parts_equality_rtx): Likewise.
	(compare_from_rtx): Likewise.
	(do_compare_rtx_and_jump): Likewise.
	(do_compare_and_jump): Likewise.
	(placeholder_list): Made declaration extern.

	* expr.h (placeholder_list): Declare.

From-SVN: r64309
2003-03-13 17:05:23 +01:00
Aldy Hernandez
3bd104d1e8 rs6000.c (rs6000_dwarf_register_span): Differentiate endianness.
2003-03-13  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
        Differentiate endianness.
        (s6000_override_options): Use cpu type instead of TARGET_SPE.

From-SVN: r64308
2003-03-13 15:04:35 +00:00
Nick Clifton
1ce537697e Remove redundant writeback test in previous delta.
From-SVN: r64307
2003-03-13 13:27:17 +00:00
Nick Clifton
b17fe23365 (print_multi_reg): Do not generate a type 2 LDM instructions with writeback enabled.
(print_multi_reg): Do not generate a type 2 LDM instructions with writeback
enabled.
(output_return_instruction): Likewise.

From-SVN: r64306
2003-03-13 12:03:36 +00:00
Nick Clifton
2ed0b52a04 (FIXED_REGISTERS): Remove definition.
(CALL_USED_REGISTERS): Remove definition.
(SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.

From-SVN: r64305
2003-03-13 10:47:28 +00:00
Alan Modra
f138425784 rs6000.c (rs6000_flag_pic): Delete.
* config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
	(rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
	(rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
	(rs6000_override_options): Don't clear flag_pic for ABI_AIX.
	(rs6000_legitimize_address): Formatting.
	(rs6000_emit_move): Likewise.
	(rs6000_return_addr): Test ABI_AIX as well as flag_pic.
	(rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
	(rs6000_elf_select_section): Comment reason for shlib being
	set for ABI_AIX.
	(rs6000_elf_unique_section): Likewise.
	(rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
	* config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
	as well as flag_pic.
	* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
	(MINIMAL_TOC_SECTION_ASM_OP): Likewise.
	* config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.

From-SVN: r64304
2003-03-13 21:05:47 +10:30
Richard Henderson
599aedd920 emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
* emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.

        * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
        (ia64_gp_save_reg): Remove.
        (struct ia64_frame_info): Move to the beginning of the file;
        add reg_save_gp.
        (ia64_expand_call): Rearrange for new call patterns.
        (ia64_reload_gp): New.
        (ia64_split_call): New.
        (ia64_compute_frame_size): Allocate reg_save_gp.
        (ia64_expand_prologue): Save reg_save_gp.
        (ia64_expand_epilogue): Don't restore gp.
        (ia64_hard_regno_rename_ok): Remove R4 hack.
        (ia64_function_ok_for_sibcall): New.
        (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
        call try_split on sibcall pattern.
        * config/ia64/ia64-protos.h: Update.
        * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
        Rename from nopic versions.  Confiscate 2nd argument to call as
        a marker.
        (call_pic, call_value_pic, sibcall_pic): Remove.
        (call_gp, call_value_gp, sibcall_gp): New.
        (builtin_setjmp_setup): Remove.
        (builtin_setjmp_receiver): Call ia64_reload_gp.

From-SVN: r64303
2003-03-13 01:02:51 -08:00
Andreas Jaeger
7e38bf41d9 * Make-lang.in (tree1$(exeext)): Fix previous patch.
From-SVN: r64302
2003-03-13 05:57:07 +01:00
Nathanael Nerode
2ff8f7ac52 dsp16xx-protos.h, [...]: Replace "GNU CC" with "GCC".
* config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
	config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
	"GNU CC" with "GCC".

From-SVN: r64301
2003-03-13 04:13:13 +00:00
Nathanael Nerode
4db9c7568a c4x-c.c, [...]: GCC, not GNU CC.
* config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
	config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
	config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
	GCC, not GNU CC.

From-SVN: r64300
2003-03-13 04:06:51 +00:00
John David Anglin
aeb11ee523 ecos.exp (gcsec-1.c): Find linker used by gcc.
* gcc.dg/special/ecos.exp (gcsec-1.c): Find linker used by gcc.
	* gcc.dg/old-style-asm-1.c (dg-final): Add hpux label alternative to
	regular expression.
	* gcc.dg/funcorder.c (dg-final): Check for "link_error,%r" on hppa*-*-*.
	* gcc.dg/inline-1.c (dg-final): Check for "xyzzy?,%r" on hppa*-*-*.

From-SVN: r64299
2003-03-13 03:54:27 +00:00
Nathanael Nerode
63b025a5c3 genattrtab.h, [...]: Replace "GNU CC" with "GCC".
* genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
	langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".

From-SVN: r64298
2003-03-13 03:51:01 +00:00
Nathanael Nerode
54a7b5732a c-pch.c, [...]: Replace "GNU CC" with "GCC".
* c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
	langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
	unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
	"GNU CC" with "GCC".

From-SVN: r64297
2003-03-13 03:48:31 +00:00
Nathanael Nerode
301ee2f3e5 lib1funcs.asm, [...]: GCC, not GNU CC.
* config/v850/lib1funcs.asm, config/v850/rtems.h,
	config/v850/v850-c.c, config/v850/v850-protos.h,
	config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
	GCC, not GNU CC.

From-SVN: r64296
2003-03-13 03:30:00 +00:00
Nathanael Nerode
e7d9d16b5a bsd.h, [...]: GCC, not GNU CC.
* config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
	config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
	config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
	config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
	GNU CC.

From-SVN: r64294
2003-03-13 03:23:55 +00:00