1. 29 Jan, 2004 21 commits
    • Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency. · f470c378
      	* Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
      	* basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
      	verify_flow_info): Declaration removed.
      	* cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
      	(debug_bb, debug_bb_n): Add argument to dump_bb call.
      	* cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
      	try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
      	instead of delete_block.
      	* cfghooks.c: Include timevar.h and toplev.h.
      	(cfg_hooks): Define here.
      	(verify_flow_info, dump_bb): Moved from cfg.c.
      	(redirect_edge_and_branch, redirect_edge_and_branch_force,
      	split_block, split_block_after_labels, move_block_after,
      	delete_basic_block, split_edge, create_basic_block,
      	create_empty_bb, can_merge_blocks_p, merge_blocks,
      	make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
      	New functions.
      	* cfghooks.h (struct cfg_hooks): Added fields name,
      	make_forwarder_block, tidy_fallthru_edge and
      	move_block_after. Changed type of verify_flow_info, dump_bb,
      	split_block fields. Renamed cfgh_split_edge and delete_block
      	fields.
      	(redirect_edge_and_branch, redirect_edge_and_branch_force,
      	split_block, delete_block, split_edge, create_basic_block,
      	can_merge_blocks_p, merge_blocks): Macros removed.
      	(cfg_hooks): Do not export.
      	(verify_flow_info, dump_bb, redirect_edge_and_branch,
      	redirect_edge_and_branch_force, split_block, split_block_after_labels,
      	move_block_after, delete_basic_block, split_edge, create_basic_block,
      	create_empty_bb, can_merge_blocks_p, merge_blocks,
      	make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
      	Declare.
      	(cfg_layout_rtl_cfg_hooks): Declare.
      	* cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
      	New functions.
      	(canonicalize_loop_headers): Use new semantics of make_forwarder_block.
      	(redirect_edge_with_latch_update): Removed.
      	(make_forwarder_block): Moved to cfghooks.c, semantics changed.
      	* cfgloopmanip.c (remove_bbs): Do not update dominators here.
      	* cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
      	rtl_delete_block, rtl_split_block, rtl_merge_blocks,
      	tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
      	cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
      	cfghooks.c.
      	(rtl_create_basic_block): Coding style fix.
      	(rtl_tidy_fallthru_edge, rtl_move_block_after,
      	rtl_make_forwarder_block): New functions.
      	(update_cfg_after_block_merging): Removed.
      	(rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
      	* flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
      	to dump_bb.
      	* ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
      	find_if_case_2): Don't update dominators.
      	* timevar.def (TV_CFG_VERIFY): New.
      	* loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
      	* cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
      	* cfgloopmanip.c (split_loop_bb): Don't update dominators.
      	(remove_bbs): Don't call remove_bbs.
      	(create_preheader): Use make_forwarder_block.
      	(mfb_keep_just, mfb_update_loops): New static functions.
      
      From-SVN: r76851
      Zdenek Dvorak committed
    • avr.h: Remove target-independent comments about target macros. · 3cea4788
      	* config/avr/avr.h: Remove target-independent comments about
      	target macros.
      
      From-SVN: r76850
      Kazu Hirata committed
    • timevar.c (timevar_print): Mention when checking is enabled. · 75e853f2
      2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
      
      	* timevar.c (timevar_print): Mention when checking is enabled.
      
      From-SVN: r76848
      Daniel Berlin committed
    • error11.C: New test. · b1521c3a
      	* g++.dg/parse/error11.C: New test.
      	* g++.dg/parse/error12.C: Likewise.
      
      From-SVN: r76846
      Giovanni Bajo committed
    • parser.c (cp_parser_template_id): Parse tentatively `[:' after a template name… · f4abade9
      parser.c (cp_parser_template_id): Parse tentatively `[:' after a template name as it was `<::' (digraph typo).
      
      	* parser.c (cp_parser_template_id): Parse tentatively `[:' after a
      	template name as it was `<::' (digraph typo).
      	(cp_parser_nth_token_starts_template_argument_list_p): New function.
      	(cp_parser_id_expression): Use it.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_template_name): Likewise.
      	(cp_parser_class_name): Likewise.
      	(cp_lexer_get_preprocessor_token): Use c_lex_with_flags.
      
      From-SVN: r76845
      Giovanni Bajo committed
    • c-lex.c (c_lex): Rename to... · 7625e73d
      	* c-lex.c (c_lex): Rename to...
      	(c_lex_with_flags): Add new parameter to get CPP flags.
      	(c_lex): Thunk to c_lex_with_flags while keeping the old interface.
      	* c-pragma.h (c_lex_with_flags): Declare.
      
      From-SVN: r76844
      Giovanni Bajo committed
    • Fix LP64 failures. · 55cbf824
      	* objc.dg/proto-qual-1.m (ROUND, aligned_sizeof): New.
      	(scan_initial, main): Use aligned_sizeof instead of sizeof.
      
      From-SVN: r76842
      Ziemowit Laski committed
    • re PR c++/13791 (ICE in layout_type with packed types) · b1a95e0b
      	PR c++/13791
      	* typeck.c (merge_types): Do not merge attributes into
      	TYPENAME_TYPEs.
      
      2004-01-28  Mark Mitchell  <mark@codesourcery.com>
      
      	PR c++/13791
      	* g++.dg/ext/attrib12.C: New test.
      
      From-SVN: r76837
      Mark Mitchell committed
    • mcore.c (mcore_external_libcall): Add a comment. · dc7efe6e
      	* config/mcore/mcore.c (mcore_external_libcall): Add a
      	comment.
      	(mcore_return_in_memory): Likewise.
      
      From-SVN: r76836
      Kazu Hirata committed
    • mcore-protos.h: Remove the prototype for mcore_setup_incoming_varargs. · 09a2b93a
      	* config/mcore/mcore-protos.h: Remove the prototype for
      	mcore_setup_incoming_varargs.
      	* config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
      	(TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
      	(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
      	(TARGET_PROMOTE_PROTOTYPES): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_SETUP_INCOMING_VARARGS): Likewise.
      	(mcore_setup_incoming_varargs): Make it static.  Receive the
      	first argument by reference.  Add argument second_time.
      	(mcore_external_libcall): New.
      	(mcore_return_in_memory): Likewise.
      	* config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
      	(PROMOTE_FUNCTION_RETURN): Likewise.
      	(STRUCT_VALUE): Likewise.
      	(RETURN_IN_MEMORY): Likewise.
      	(SETUP_INCOMING_VARARGS): Likewise.
      	(PROMOTE_PROTOTYPES): Likewise.
      	(ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
      
      From-SVN: r76835
      Kazu Hirata committed
    • m32r-protos.h: Remove the prototype for m32r_setup_incoming_varargs. · a7ed00da
      	* config/m32r/m32r-protos.h: Remove the prototype for
      	m32r_setup_incoming_varargs.
      	* config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_SETUP_INCOMING_VARARGS): Likewise.
      	(m32r_return_in_memory): New.
      	(m32r_setup_incoming_varargs): Make it static.
      	* config/m32r/m32r.h: Remove #undef of
      	ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
      	definitions of PROMOTE_FUNCTION_ARGS and
      	PROMOTE_FUNCTION_RETURN.
      	(PROMOTE_PROTOTYPES): Remove.
      	(RETURN_IN_MEMORY): Likewise.
      	(STRUCT_VALUE): Likewise.
      
      From-SVN: r76834
      Kazu Hirata committed
    • m68k.c (TARGET_PROMOTE_PROTOTYPES): New. · 8636be86
      	* config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(m68k_struct_value_rtx): Likewise.
      	* config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
      	STRUCT_VALUE_REGNUM.
      	(PROMOTE_PROTOTYPES): Remove.
      	* config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
      	STRUCT_VALUE_REGNUM.
      	* config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
      	* config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
      
      From-SVN: r76833
      Kazu Hirata committed
    • * config/stormy16/stormy16.c · f2f61ee7
      	(TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
      	TARGET_BUILD_BUILTIN_VA_LIST.
      
      From-SVN: r76832
      Kazu Hirata committed
    • v850.c (TARGET_PROMOTE_PROTOTYPES): New. · fb7bc7fb
      	* config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_SETUP_INCOMING_VARARGS): Likewise.
      	(v850_return_in_memory): Likewise.
      	(v850_setup_incoming_varargs): Likewise.
      	* config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
      	(SETUP_INCOMING_VARARGS): Likewise.
      	(RETURN_IN_MEMORY): Likewise.
      	(STRUCT_VALUE): Likewise.
      
      From-SVN: r76831
      Kazu Hirata committed
    • fr30.c (TARGET_PROMOTE_PROTOTYPES): New. · 0fd818e7
      	* config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
      	(fr30_setup_incoming_varargs): Don't use
      	STRICT_ARGUMENT_NAMING.
      	* config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
      	(STRICT_ARGUMENT_NAMING): Likewise.
      
      From-SVN: r76830
      Kazu Hirata committed
    • Fix typo in ChangeLog · ba4aecd9
      From-SVN: r76827
      Mark Mitchell committed
    • frv-protos.h: Remove the prototype for frv_expand_builtin_saveregs. · 8ac411c7
      	* config/frv/frv-protos.h: Remove the prototype for
      	frv_expand_builtin_saveregs.
      	* config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
      	(frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
      	STRUCT_VALUE_REGNUM.
      	(frv_expand_builtin_saveregs): Make it static.
      	(frv_struct_value_rtx): New.
      	* config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
      
      From-SVN: r76826
      Kazu Hirata committed
    • re PR c++/13736 (Parser confused on compound casts) · a7324e75
      	PR c++/13736
      	* parser.c (cp_parser_direct_declarator): Do not prevent
      	backtracking inside a parenthesized declarator.
      	(cp_parser_parameter_declaration): Fix typo in comment.
      
      	PR c++/13736
      	* g++.dg/parse/cast2.C (main): New test.
      
      From-SVN: r76825
      Mark Mitchell committed
    • re PR c++/12850 (memory consumption for heavy template instantiations tripled since 3.3) · d173e685
      
      	PR c++/12850
      	* cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
      	initial pointers.
      	* cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
      	for functions that will be only inlined.
      	(cgraph_mark_function_to_output): Likewise.
      	(cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
      	do not clear function body.
      	* tree-optimize.c (clear_decl_rtl): Use decl_function_context.
      	(tree_rest_of_compilation): Reorganize the logic releasing function
      	body to use callgraph datastructure.
      
      From-SVN: r76822
      Jan Hubicka committed
    • Makefile.am (bits_headers): Remove allocator_traits.h. · ba9d552e
      
      2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/Makefile.am (bits_headers): Remove allocator_traits.h.
      	* include/Makefile.in: Regenerate.
      	* include/bits/allocator_traits.h: Remove.
      	* include/bits/allocator.h: Remove allocator_traits.h include, and
      	relevant comments.
      	(allocator): Empty base class, inherit from the underlying allocator.
      	* src/allocator-inst.cc: Move __pool_alloc instantiation to...
      	* src/allocator.cc: ...here. New. For the underlying allocators.
      	Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
      	* config/linker-map.gnu: Remove __pool_alloc bits.
      	* src/Makefile.am (sources): Add allocator.cc.
      	* src/Makefile.in: Regenerate.
      	* testsuite/20_util/allocator/1.cc: Split second test into...
      	* testsuite/20_util/allocator/8230.cc: ...this.
      	* include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
      	typedef to use std::allocatore. Format.
      	* include/ext/pool_allocator.h: Remove allocator_traits.h include,
      	_Alloc_traits.
      	* include/ext/mt_allocator.h (__gnu_cxx): Qualify
      	__throw_bad_alloc calls. Don't include <memory>.
      	* include/ext/malloc_allocator.h: Remove <memory> include.
      	* include/ext/new_allocator.h (new_allocator): Same.
      	* include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
      	declaration. Switch __alloc to _Alloc.
      	* include/ext/hashtable.h: Remove __alloc.
      	* include/backward/alloc.h: Only inject allocator, not
      	implementation details.
      
      	* include/ext/mt_allocator.h: Replace free with delete.
      
      From-SVN: r76821
      Benjamin Kosnik committed
    • Daily bump. · 63d47f2a
      From-SVN: r76818
      GCC Administrator committed
  2. 28 Jan, 2004 19 commits