John David Anglin [Sat, 15 Mar 2003 18:22:02 +0000 (18:22 +0000)]
eh33.C: Remove xfail for hppa*-*-*.
* g++.old-deja/g++.mike/eh33.C: Remove xfail for hppa*-*-*.
* g++.old-deja/g++.mike/eh50.C: Likewise.
From-SVN: r64413
Jason Merrill [Sat, 15 Mar 2003 17:41:35 +0000 (12:41 -0500)]
re PR debug/9039 (ICE, anonymous union, gen_decl_die, dwarf2out.c:11974)
PR debug/9039
* dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
From-SVN: r64412
Jason Merrill [Sat, 15 Mar 2003 17:35:05 +0000 (12:35 -0500)]
don't specify -g1
From-SVN: r64411
Jason Merrill [Sat, 15 Mar 2003 17:06:24 +0000 (12:06 -0500)]
re PR debug/6387 (-fpic -gdwarf-2 -g1 combination give ICE in dwarf2out)
PR debug/6387
* dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
function DIEs at toplevel.
(decls_for_scope): At -g1, don't descend into subblocks.
From-SVN: r64410
Gabriel Dos Reis [Sat, 15 Mar 2003 16:31:58 +0000 (16:31 +0000)]
Fix thinko.
From-SVN: r64407
Ulrich Weigand [Sat, 15 Mar 2003 16:30:35 +0000 (16:30 +0000)]
varasm.c (struct rtx_const): Change type of un.addr member to struct holding an additional 'symbol' member.
* varasm.c (struct rtx_const): Change type of un.addr member
to struct holding an additional 'symbol' member.
(decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
with equal string addresses as equal.
(simplify_subtraction): Adapt to struct rtx_const change.
From-SVN: r64406
Gabriel Dos Reis [Sat, 15 Mar 2003 16:30:02 +0000 (16:30 +0000)]
Compile-time improvement: 2/n.
* cp-tree.h (struct cxx_binding): New datatype;
(struct lang_identifier): Use it.
(LOCAL_BINDING_P): Adjust definition.
(INHERITED_VALUE_BINDING_P): Likewise.
(BINDING_SCOPE): Likewise.
(BINDING_HAS_LEVEL_P): Likewise.
(BINDING_VALUE): Likewise.
(BINDING_TYPE): Likewise.
(IDENTIFIER_VALUE): Likewise.
(struct tree_binding): Remove.
(TS_CP_BINDING): Likewise.
((union lang_tree_node): Remove field "binding".
(cxx_binding_clear): New macro.
(binding_for_name): Adjust return type.
(qualified_lookup_using_namespace): Adjust prototype.
(lookup_using_namespace): Adjust prototype.
(cxx_scope_find_binding_for_name): Declare.
* cp-tree.def: Remove CPLUS_BINDING definition.
* parse.y (parse_scoped_id): Don't type-abuse of 'id'. Allocate
temporary cxx_binding on stack. Simplify.
* decl.c (push_binding): Adjust local variable type.
(add_binding): Likewise.
(push_class_binding): Likewise.
(pop_binding): Likewise.
(poplevel): Likewise.
(poplevel_class): Likewise.
(free_bindings): Adjust type.
(find_binding): Adjust return type, add a third parameter. Remove
non-useful assertion now that we use static typing.
(cxx_scope_find_binding_for_name): New function.
(binding_for_name): Use it. Adjust local variable type. Simplify.
(namespace_binding): Simplify.
(set_namespace_binding): Likewise.
(set_identifier_type_value_with_scope): Adjust local variable type.
(lookup_tag): Don't type-abuse of local variable 'old'.
(lookup_namespace_name): Likewise. Allocate binding on stack.
(select_decl): Adjust prototype.
(unqualified_namespace_lookup): Allocate binding on stack.
Don't type-abuse of local variable 'val'.
(lookup_name_real): Likewise.
(maybe_inject_for_scope_var): Adjust local variable type.
(cp_tree_node_structure): Remove CPLUS_BINDING case label.
(namespace_binding): Adjust logic, simplify.
(BINDING_LEVEL): Adjust definition.
(push_class_level_binding): Adjust local variable type.
(struct cxx_saved_binding): Adjust field 'binding' type.
* decl2.c (ambiguous_decl): Adjust prototype.
(lookup_using_namespace): Adjust local variable type.
(qualified_lookup_using_namespace): Catch type error and correct
ensueing logic error.
(do_nonmember_using_decl): Adjust local variable type. Allocate
temporary cxx_binding on stack.
(do_toplevel_using_decl): Adjust local variable type.
* ptree.c (cxx_print_cxx_binding): New function.
(cxx_print_identifier): Use it.
(cxx_print_xnode): Delete CPLUS_BINDING case label.
From-SVN: r64405
Neil Booth [Sat, 15 Mar 2003 15:02:16 +0000 (15:02 +0000)]
* fix-header.c (read_scan_file): Read main file before handling -D.
From-SVN: r64404
Andreas Jaeger [Sat, 15 Mar 2003 14:01:25 +0000 (15:01 +0100)]
* treetree.c (cpp_handle_option): Remove.
From-SVN: r64403
Roger Sayle [Sat, 15 Mar 2003 13:43:33 +0000 (13:43 +0000)]
c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
* c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
* c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
* cfgbuild.c (find_many_sub_basic_blocks): Likewise.
(find_sub_basic_blocks): Likewise.
* cgraphunit.c (cgraph_expand_functions): Likewise.
* dwarf2out.c (prune_unused_types): Likewise.
* expr.c (store_field): Likewise.
* genextract.c (print_path): Likewise.
* haifa-sched.c (schedule_insn): Likewise.
* lcm.c (compute_antinout_edge): Likewise.
* loop-unroll.c (decide_peel_once_rolling): Likewise.
* ra-colorize.c (ra_colorize_free_all): Likewise.
* ra-debug.c (dump_igraph): Likewise.
(debug_hard_reg_set): Likewise.
* reg-stack.c (reg_to_stack): Likewise.
* rtlanal.c (refers_to_regno_p): Likewise.
* tracer.c (layout_superblocks): Likewise.
* cp/tree.c (count_functions): Fix whitespace.
* f/ste.c (ffeste_R810): Fix whitespace.
From-SVN: r64402
Neil Booth [Sat, 15 Mar 2003 13:14:00 +0000 (13:14 +0000)]
* fix-header.c (read_scan_file): Fix thinko.
From-SVN: r64401
Glen Nakamura [Sat, 15 Mar 2003 13:06:01 +0000 (14:06 +0100)]
reload1.c (choose_reload_regs): Use && instead of || with REG_CANNOT_CHANGE_MODE_P condition.
2003-03-15 Glen Nakamura <glen@imodulo.com>
* reload1.c (choose_reload_regs): Use && instead of ||
with REG_CANNOT_CHANGE_MODE_P condition.
From-SVN: r64399
Neil Booth [Sat, 15 Mar 2003 12:18:47 +0000 (12:18 +0000)]
Makefile.in: Update.
* Makefile.in: Update.
* c-common.h (cb_register_builtins): Rename c_cpp_builtins.
* c-lex.c (init_c_lex): Register builtins hook is dead.
* c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
(c_common_decode_option): Don't call cpp_handle_option.
Handle -A, -D and -U.
(handle_deferred_opts): Simplify.
(finish_options): Define builtins and command line macros.
* c-ppoutput.c (init_pp_output): Register builtins hook is dead.
* cppinit.c: Don't include intl.h.
(init_builtins): Rename cpp_init_builtins. No hook to call.
(init_library): Don't need to sort options.
(cpp_create_reader): Don't set pending.
(cpp_destroy): Don't free pending.
(struct pending_option, cl_directive_handler, struct cpp_pending,
APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
cl_options, cpp_handle_option): Remove.
* cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
cpp_finish_options): Remove.
(cpp_init_builtins): New.
* fix-header.c (read_scan_file): Update to handle -D. Fix
handling of -I. Replace call to cpp_finish_options.
cp:
* Make-lang.in: Update.
From-SVN: r64398
Kriang Lerdsuwanakij [Sat, 15 Mar 2003 10:08:31 +0000 (10:08 +0000)]
re PR c++/6440 (template specializations cause ICE)
PR c++/6440
* pt.c (maybe_process_partial_specialization): Handle
member class template when enclosing class template is
explicit specialized.
(most_general_template): Stop looking when DECL is already
specialized.
* g++.dg/template/spec7.C: New test.
* g++.dg/template/spec8.C: Likewise.
From-SVN: r64395
Andreas Jaeger [Sat, 15 Mar 2003 10:02:33 +0000 (11:02 +0100)]
Fix date in last ChangeLog entry.
From-SVN: r64393
Andreas Jaeger [Sat, 15 Mar 2003 06:12:33 +0000 (07:12 +0100)]
g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
* g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
(DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
From-SVN: r64392
Benjamin Kosnik [Sat, 15 Mar 2003 04:53:52 +0000 (04:53 +0000)]
[multiple changes]
2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/23_containers/bitset_members.cc: Add test variable.
* testsuite/23_containers/map_insert.cc: Same.
* testsuite/22_locale/ctype/cons/char/1.cc: Same.
* testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
* testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
* testsuite/27_io/istream_exception.cc: Same.
* testsuite/27_io/filebuf_virtuals.cc: Same.
* testsuite/27_io/stringbuf_virtuals.cc: Same.
* testsuite/27_io/ostream_inserter_arith.cc: Same.
* testsuite/26_numerics/valarray_operators.cc: Same.
* testsuite/26_numerics/slice.cc: Same.
* testsuite/26_numerics/slice_array_assignment.cc: Same.
* testsuite/24_iterators/istream_iterator.cc: Same.
* mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
2003-03-14 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9581
PR libstdc++/9870
* config/locale/generic/ctype_members.cc,
* config/locale/gnu/ctype_members.cc
(ctype<wchar_t>::do_widen(char)): Cast argument to
unsigned char before passing to btowc.
(ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
Convert characters with btowc instead of mbsrtowcs.
(ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
char, char*):
Convert characters with wctob instead of wcsrtombs.
* testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
* testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
* testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
From-SVN: r64391
Michael Hayes [Sat, 15 Mar 2003 02:44:29 +0000 (02:44 +0000)]
re PR rtl-optimization/9387 (jump threading bug)
PR optimization/9387
* function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
for conditional returns.
From-SVN: r64390
Jason Merrill [Sat, 15 Mar 2003 01:43:07 +0000 (20:43 -0500)]
re PR rtl-optimization/6871 (const objects shouldn't be moved to .bss)
PR optimization/6871
* varasm.c (assemble_variable): Leave constant zeroes in .rodata.
From-SVN: r64387
Hans Boehm [Sat, 15 Mar 2003 01:04:08 +0000 (01:04 +0000)]
* java/lang/natObject.cc (JV_SYNC_HASH): replace signed % by &.
From-SVN: r64386
GCC Administrator [Sat, 15 Mar 2003 00:17:09 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r64385
Neil Booth [Fri, 14 Mar 2003 23:47:24 +0000 (23:47 +0000)]
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
Jakub Jelinek [Fri, 14 Mar 2003 22:58:43 +0000 (23:58 +0100)]
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
Benjamin Kosnik [Fri, 14 Mar 2003 22:17:26 +0000 (22:17 +0000)]
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
Benjamin Kosnik [Fri, 14 Mar 2003 22:16:06 +0000 (22:16 +0000)]
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
Neil Booth [Fri, 14 Mar 2003 21:47:50 +0000 (21:47 +0000)]
/home/neil/diffs/include.log
From-SVN: r64373
Loren J. Rittle [Fri, 14 Mar 2003 21:41:26 +0000 (21:41 +0000)]
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
Loren J. Rittle [Fri, 14 Mar 2003 21:36:28 +0000 (21:36 +0000)]
Makefile.in (.y.c): Only enable production rule when maintaining.
* Makefile.in (.y.c): Only enable production rule when
maintaining.
From-SVN: r64371
Nathanael Nerode [Fri, 14 Mar 2003 20:44:37 +0000 (20:44 +0000)]
Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
* Makefile.in: Regenerate.
From-SVN: r64370
Jan Hubicka [Fri, 14 Mar 2003 20:15:13 +0000 (21:15 +0100)]
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
Michael Chastain [Fri, 14 Mar 2003 19:18:21 +0000 (19:18 +0000)]
* Makefile.in: Regenerate with correct Makefile.def.
From-SVN: r64368
Richard Henderson [Fri, 14 Mar 2003 17:58:48 +0000 (09:58 -0800)]
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
Jakub Jelinek [Fri, 14 Mar 2003 17:53:51 +0000 (18:53 +0100)]
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
Richard Henderson [Fri, 14 Mar 2003 17:49:12 +0000 (09:49 -0800)]
* gcc.dg/inline-2.c: Adjust alpha test for external call.
From-SVN: r64365
Chris Demetriou [Fri, 14 Mar 2003 15:53:48 +0000 (15:53 +0000)]
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
Andreas Schwab [Fri, 14 Mar 2003 15:12:06 +0000 (15:12 +0000)]
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
Eric Botcazou [Fri, 14 Mar 2003 14:49:40 +0000 (15:49 +0100)]
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
Jeroen Frijters [Fri, 14 Mar 2003 11:54:38 +0000 (12:54 +0100)]
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
Steven Bosscher [Fri, 14 Mar 2003 08:47:05 +0000 (08:47 +0000)]
* doc/extend.texi (Function Names): Make the example compilable.
From-SVN: r64350
David Edelsohn [Fri, 14 Mar 2003 04:30:29 +0000 (23:30 -0500)]
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
Roger Sayle [Fri, 14 Mar 2003 01:59:16 +0000 (01:59 +0000)]
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
GCC Administrator [Fri, 14 Mar 2003 00:17:40 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r64345
Danny Smith [Thu, 13 Mar 2003 22:21:21 +0000 (22:21 +0000)]
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
Jason Merrill [Thu, 13 Mar 2003 21:39:38 +0000 (16:39 -0500)]
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
Mark Mitchell [Thu, 13 Mar 2003 20:54:36 +0000 (20:54 +0000)]
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
Jason Merrill [Thu, 13 Mar 2003 20:45:22 +0000 (15:45 -0500)]
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
Mark Mitchell [Thu, 13 Mar 2003 20:36:46 +0000 (20:36 +0000)]
Fix typo in ChangeLog
From-SVN: r64321
Mike Stump [Thu, 13 Mar 2003 20:19:03 +0000 (20:19 +0000)]
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
Mark Mitchell [Thu, 13 Mar 2003 19:57:12 +0000 (19:57 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 19:20:26 +0000 (19:20 +0000)]
ChangeLog: Rotated last year's entries to...
* ChangeLog: Rotated last year's entries to...
* ChangeLog.8: New.
From-SVN: r64315
Tom Tromey [Thu, 13 Mar 2003 18:35:01 +0000 (18:35 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 18:26:30 +0000 (18:26 +0000)]
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
Jonathan Wakely [Thu, 13 Mar 2003 18:26:23 +0000 (18:26 +0000)]
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
Nick Clifton [Thu, 13 Mar 2003 16:55:35 +0000 (16:55 +0000)]
output_return_instruction: Simplyify test for avoiding type 2 LDMs.
From-SVN: r64311
Ansgar Esztermann [Thu, 13 Mar 2003 16:05:23 +0000 (17:05 +0100)]
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
Aldy Hernandez [Thu, 13 Mar 2003 15:04:35 +0000 (15:04 +0000)]
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
Nick Clifton [Thu, 13 Mar 2003 13:27:17 +0000 (13:27 +0000)]
Remove redundant writeback test in previous delta.
From-SVN: r64307
Nick Clifton [Thu, 13 Mar 2003 12:03:36 +0000 (12:03 +0000)]
(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
Nick Clifton [Thu, 13 Mar 2003 10:47:28 +0000 (10:47 +0000)]
(FIXED_REGISTERS): Remove definition.
(CALL_USED_REGISTERS): Remove definition.
(SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
From-SVN: r64305
Alan Modra [Thu, 13 Mar 2003 10:35:47 +0000 (10:35 +0000)]
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
Richard Henderson [Thu, 13 Mar 2003 09:02:51 +0000 (01:02 -0800)]
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
Andreas Jaeger [Thu, 13 Mar 2003 04:57:07 +0000 (05:57 +0100)]
* Make-lang.in (tree1$(exeext)): Fix previous patch.
From-SVN: r64302
Nathanael Nerode [Thu, 13 Mar 2003 04:13:13 +0000 (04:13 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 04:06:51 +0000 (04:06 +0000)]
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
John David Anglin [Thu, 13 Mar 2003 03:54:27 +0000 (03:54 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 03:51:01 +0000 (03:51 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 03:48:31 +0000 (03:48 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 03:30:00 +0000 (03:30 +0000)]
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
Nathanael Nerode [Thu, 13 Mar 2003 03:23:55 +0000 (03:23 +0000)]
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
Benjamin Kosnik [Thu, 13 Mar 2003 03:12:36 +0000 (03:12 +0000)]
cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
* cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
From-SVN: r64293
Nathanael Nerode [Thu, 13 Mar 2003 03:01:26 +0000 (03:01 +0000)]
fixinc.interix: Remove dead code (most of it).
* fixinc/fixinc.interix: Remove dead code (most of it).
* fixinc/fixinc.dgux: Remove.
From-SVN: r64292
Nathanael Nerode [Thu, 13 Mar 2003 02:58:40 +0000 (02:58 +0000)]
float.h, [...]: GCC, not GNU CC.
* ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
From-SVN: r64291
Nathanael Nerode [Thu, 13 Mar 2003 02:46:26 +0000 (02:46 +0000)]
* Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
From-SVN: r64290
Nathanael Nerode [Thu, 13 Mar 2003 02:38:00 +0000 (02:38 +0000)]
g77.texi, [...]: GCC, not GNU CC.
* g77.texi, invoke.texi, g77spec.c, lang-specs.h: GCC, not
GNU CC. Especially here.
From-SVN: r64289
John David Anglin [Thu, 13 Mar 2003 01:21:05 +0000 (01:21 +0000)]
* pa.c (pa_init_builtins): Fix warning.
From-SVN: r64286
GCC Administrator [Thu, 13 Mar 2003 00:17:09 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r64280
Jonathan Wakely [Thu, 13 Mar 2003 00:15:59 +0000 (00:15 +0000)]
index.html: Explain memory "leaks" due to allocators.
2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/faq/index.html: Explain memory "leaks" due to allocators.
* docs/html/faq/index.txt: Regenerate.
* docs/html/debug.html: Add a bit to allocator text and fix XHTML.
From-SVN: r64273
Steve Ellcey [Wed, 12 Mar 2003 23:05:40 +0000 (23:05 +0000)]
ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
* config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
(ASM_OUTPUT_XDATA_SHORT): Remove.
(ASM_OUTPUT_XDATA_INT): Remove.
(ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
(ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
(ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
(CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
From-SVN: r64271
Andrew Lewycky [Wed, 12 Mar 2003 22:24:48 +0000 (17:24 -0500)]
re PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))
PR c++/7050
* expr.c (store_expr): Don't attempt to store void-typed trees,
just evaluate them for side effects.
* cp/expr.c (cxx_expand_expr): Return const0_rtx for throw
expressions.
From-SVN: r64268
Andreas Schwab [Wed, 12 Mar 2003 21:34:31 +0000 (21:34 +0000)]
configure.in: Avoid trailing /.
2003-03-10 Andreas Schwab <schwab@suse.de>
boehm-gc:
* configure.in: Avoid trailing /. in toolexeclibdir.
* configure: Rebuilt.
libf2c:
* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
glibcpp_toolexeclibdir.
* configure: Rebuilt.
libffi:
* configure.in: Avoid trailing /. in toolexeclibdir.
* configure: Rebuilt.
libjava:
* configure.in: Avoid trailing /. in toolexeclibdir.
* configure: Rebuilt.
libobjc:
* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
glibcpp_toolexeclibdir.
* configure: Rebuilt.
libstdc++-v3:
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
glibcpp_toolexeclibdir.
* aclocal.m4, configure: Rebuilt.
zlib:
* configure.in: Avoid trailing /. in toolexeclibdir.
* configure: Rebuilt.
From-SVN: r64267
Neil Booth [Wed, 12 Mar 2003 21:31:51 +0000 (21:31 +0000)]
cppfiles.c (cpp_rename_file, [...]): New.
* cppfiles.c (cpp_rename_file, cpp_push_include): New.
* cppinit.c (push_include): Move with changes to cppfiles.c.
(cpp_read_main_file): Mark named operators here...
(cpp_finish_options): ...not here. Update.
(_cpp_maybe_push_include_file): Update.
* cpplib.h (cpp_push_include, cpp_rename_file): New.
From-SVN: r64266
Nathanael Nerode [Wed, 12 Mar 2003 20:56:05 +0000 (20:56 +0000)]
aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE, _gcc_COMPUTE_GAS_VERSION.
* aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
_gcc_COMPUTE_GAS_VERSION.
* configure.in: Use them.
* configure: Regenerate.
From-SVN: r64263
Bob Wilson [Wed, 12 Mar 2003 20:50:24 +0000 (20:50 +0000)]
xtensa.md (adddi3): Don't clobber source operand used to detect carry.
* config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
to detect carry.
(subdi3): Reorder emitted instructions.
From-SVN: r64262
Andreas Jaeger [Wed, 12 Mar 2003 20:43:52 +0000 (21:43 +0100)]
netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to NETBSD_OS_CPP_BUILTINS_LP64.
* config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
NETBSD_OS_CPP_BUILTINS_LP64.
From-SVN: r64261
Nathanael Nerode [Wed, 12 Mar 2003 20:41:00 +0000 (20:41 +0000)]
Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up.
(toplev)
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up. Delete unused
Make macro.
* Makefile.in: Regenerate.
* configure.in: Clean up gxx_include_dir logic.
* configure: Regenerate.
(gcc)
* Makefile.in: Eliminate all.indirect. Update and clean up comments.
Rearrange. Reorganize.
* configure.in: Rearrange.
* configure: Regenerate.
From-SVN: r64260
Andreas Jaeger [Wed, 12 Mar 2003 20:30:06 +0000 (21:30 +0100)]
c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for LP64 targets.
* c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
LP64 targets.
* doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
_LP64.
* config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
_LP64 macros here.
* config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
* config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
NETBSD_OS_CPP_BUILTINS_LP64.
* config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
* config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
* config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
From-SVN: r64259
Jan Hubicka [Wed, 12 Mar 2003 18:06:29 +0000 (19:06 +0100)]
* i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
From-SVN: r64256
Daniel Jacobowitz [Wed, 12 Mar 2003 16:48:50 +0000 (16:48 +0000)]
Fix date in last log entry
From-SVN: r64252
Daniel Jacobowitz [Wed, 12 Mar 2003 16:47:07 +0000 (16:47 +0000)]
* gcc.c-torture/execute/
20030224-2.c: New test.
From-SVN: r64251
Daniel Jacobowitz [Wed, 12 Mar 2003 16:45:25 +0000 (16:45 +0000)]
Fix PR target/9797 and PR c/9853.
* stmt.c (expand_decl_init): Call push_temp_slots () and
pop_temp_slots ().
From-SVN: r64250
Jan Hubicka [Wed, 12 Mar 2003 16:43:21 +0000 (17:43 +0100)]
* hashtab.c (htab_expand): Fix warning.
From-SVN: r64249
J"orn Rennecke [Wed, 12 Mar 2003 16:33:20 +0000 (16:33 +0000)]
sh.c: Include basic-block.h.
* sh.c: Include basic-block.h.
(sh_output_mi_thunk, emit_load_ptr): New functions.
(TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
From-SVN: r64248
Andrew Haley [Wed, 12 Mar 2003 16:14:01 +0000 (16:14 +0000)]
gjavah.c (is_first_data_member): New global variable.
2003-03-04 Andrew Haley <aph@redhat.com>
* gjavah.c (is_first_data_member): New global variable.
(print_c_decl): If it's the first data member, align it as the
superclass.
(process_file): Set is_first_data_member.
From-SVN: r64247
Jan Hubicka [Wed, 12 Mar 2003 14:15:09 +0000 (15:15 +0100)]
hashtab.c (htab_expand): Compute the size of hashtable based on the number of elements actually used.
* hashtab.c (htab_expand): Compute the size of hashtable based
on the number of elements actually used.
(htab_traverse): Call htab_expand when table is too empty.
From-SVN: r64246
Ansgar Esztermann [Wed, 12 Mar 2003 12:58:36 +0000 (13:58 +0100)]
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r64245
Nick Clifton [Wed, 12 Mar 2003 12:38:35 +0000 (12:38 +0000)]
(FIXED_REGISTERS): Add Maverick registers.
(CALL_USED_REGISTERS): Likewise.
(FIRST_PSEUDO_REGISTER): Update comment describing how this value is calculated.
From-SVN: r64243
Hans-Peter Nilsson [Wed, 12 Mar 2003 12:28:34 +0000 (12:28 +0000)]
Actually regenerate (using autoheader) this time.
From-SVN: r64242
Hans-Peter Nilsson [Wed, 12 Mar 2003 12:19:25 +0000 (12:19 +0000)]
configure.in (rlim_t): Define to long if no valid definition found in sys/resource.h.
* configure.in (rlim_t): Define to long if no valid definition
found in sys/resource.h.
* config.in, configure: Regenerate.
From-SVN: r64241
Neil Booth [Wed, 12 Mar 2003 11:46:56 +0000 (11:46 +0000)]
/home/neil/diffs/mcore.log
From-SVN: r64240
Eric Botcazou [Wed, 12 Mar 2003 09:54:38 +0000 (10:54 +0100)]
re PR c/9928 (ICE on duplicate enum declaration)
PR c/9928
* c-decl.c (duplicate_decls): Discard the initializer of the new decl
only if it is a VAR_DECL.
From-SVN: r64235