1. 22 Sep, 2009 36 commits
    • mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. · dbbdb385
              * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
              (TARGET_TRAMPOLINE_INIT): New.
              (mmix_trampoline_size): Remove.
              (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
              make static.  Remove out-of-date tetra vs octa comment.
              (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
              make static; update for hook parameters.
              * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
              (INITIALIZE_TRAMPOLINE): Remove.
              (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
              (TRAMPOLINE_ALIGNMENT): New.
              * gcc/config/mmix/mmix-protos.h: Update.
      
      From-SVN: r152002
      Richard Henderson committed
    • mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, [...]): New. · a1d29c8c
              * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
              mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
              mips_trampoline_init): New.
              * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
              mips_asm_trampoline_template.
              (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
              update for hook parameters.
      
      From-SVN: r152001
      Richard Henderson committed
    • mep.h (INITIALIZE_TRAMPOLINE): Remove. · 87138d8d
      	* config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
      	* config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
      	(mep_trampoline_init): Rename from mep_init_trampoline; make static;
      	update for hook parameters.
      	* config/mep/mep-protos.h (mep_init_trampoline): Remove.
      
      From-SVN: r152000
      Richard Henderson committed
    • mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. · 71e0af3c
              * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
              (TARGET_TRAMPOLINE_INIT): New.
              (mcore_function_value): Fix typo.
              (mcore_asm_trampoline_template, mcore_trampoline_init): New.
              * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
              to mcore_asm_trampoline_template.
              (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
      
      From-SVN: r151999
      Richard Henderson committed
    • m68hc11.c (TARGET_TRAMPOLINE_INIT): New. · 0d7e5af1
      	* config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
      	(m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
      	make static; update for hook parameters.
      	* config/m68hc11/m68hc11-protos.h: Update.
      	* config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r151998
      Richard Henderson committed
    • m32r.c (TARGET_TRAMPOLINE_INIT): New. · 1548bf05
              * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
              (m32r_trampoline_init): New.
              * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
              m32r_trampoline_init.
      
      From-SVN: r151997
      Richard Henderson committed
    • m32c-protos.h (m32c_initialize_trampoline): Remove. · 229fbccb
      	* config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
      	* config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
      	(m32c_trampoline_init): Rename from m32c_initialize_trampoline;
      	adjust for hook parameters.
      	* config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r151996
      Richard Henderson committed
    • iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. · f4a33d37
      	* config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
      	(TARGET_TRAMPOLINE_INIT): New.
      	(iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
      	* config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
      	iq2000_asm_trampoline_template.
      	(INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
      	(TRAMPOLINE_CODE_SIZE): New.
      	(TRAMPOLINE_SIZE): Use it.
      	(TRAMPOLINE_ALIGNMENT): Follow Pmode.
      
      From-SVN: r151995
      Richard Henderson committed
    • ia64-protos.h (ia64_initialize_trampoline): Remove. · 2a1211e5
              * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
              * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
              (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
              make static; adjust for hook parameters.
              * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r151994
      Richard Henderson committed
    • h8300.c (h8300_trampoline_init): New. · 9f6ef043
      	* config/h8300/h8300.c (h8300_trampoline_init): New.
      	(TARGET_TRAMPOLINE_INIT): New.
      	* config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
      	to h8300_trampoline_init and adjust for hook parameters.
      
      From-SVN: r151993
      Richard Henderson committed
    • frv.c (TARGET_TRAMPOLINE_INIT): New. · e9d5fdb2
      	* config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
      	(frv_trampoline_init): Rename from frv_initialize_trampoline;
      	make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
      	* config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
      	* config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
      
      From-SVN: r151992
      Richard Henderson committed
    • fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, [...]): New. · 98689f5e
      	* config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
      	TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
      	fr30_trampoline_init): New.
      	* config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
      	fr30_asm_trampoline_template.
      	(INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
      	adjust for target hook parameters.
      
      From-SVN: r151991
      Richard Henderson committed
    • * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove. · 956c97fc
      From-SVN: r151990
      Richard Henderson committed
    • cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, [...]): New. · 3e322b77
      	* config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
      	TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
      	cris_trampoline_init): New.
      	* config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
      	cris_asm_trampoline_template.
      	(INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
      	adjust for target hook parameters.
      
      From-SVN: r151989
      Richard Henderson committed
    • bfin-protos.h (initialize_trampoline): Remove. · 92910d77
      	* config/bfin/bfin-protos.h (initialize_trampoline): Remove.
      	* config/bfin/bfin.c (bfin_asm_trampoline_template): New.
      	(bfin_trampoline_init): Rename from initialize_trampoline;
      	make static; update for target hook parameters.
      	(TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
      	* config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
      	bfin_asm_trampoline_template.
      	(INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r151988
      Richard Henderson committed
    • arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. · 0ef9304b
              * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
              (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
              (arm_asm_trampoline_template): New.
              (arm_trampoline_init, arm_trampoline_adjust_address): New.
              * config/arm/arm.h (TRAMPOLINE_TEMPLATE,
              * ARM_TRAMPOLINE_TEMPLATE,
              THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
              code to arm_asm_trampoline_template.
              (TRAMPOLINE_ADJUST_ADDRESS): Move code to
              arm_trampoline_adjust_address.
              (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
              adjust for target hook parameters.
      
      From-SVN: r151986
      Richard Henderson committed
    • arc.h (TRAMPOLINE_ALIGNMENT): New. · 672f0baa
      	* config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
      	(TRAMPOLINE_TEMPLATE): Merge with ...
      	(INITIALIZE_TRAMPOLINE): ... this and move ...
      	* config/arc/arc.c (arc_trampoline_init): ... here.
      	(TARGET_TRAMPOLINE_INIT): New.
      
      From-SVN: r151985
      Richard Henderson committed
    • alpha.c (alpha_trampoline_init): Rename from alpha_initialize_trampoline. · 2d7b663a
              * config/alpha/alpha.c (alpha_trampoline_init): Rename from
              alpha_initialize_trampoline.  Make static.  Merge VMS parameter
              differences into the TARGET_ABI_OPEN_VMS code block.
              (TARGET_TRAMPOLINE_INIT): New.
              * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
              (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
              * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT):
              * Remove.
              (INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r151984
      Richard Henderson committed
    • re PR target/41246 (should "sorry" when regparm=3 and nested functions are encountered) · 531ca746
      	PR target/41246
      	* target.h (struct gcc_target): Add asm_out.trampoline_template,
      	calls.static_chain, calls.trampoline_init,
      	calls.trampoline_adjust_address.
      	* target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
      	(TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
      	(TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
      	* builtins.c (expand_builtin_setjmp_receiver): Use
      	targetm.calls.static_chain; only clobber registers.
      	(expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
      	set up memory attributes properly for the trampoline block.
      	(expand_builtin_adjust_trampoline): Use
      	targetm.calls.trampoline_adjust_address.
      	* calls.c (prepare_call_address): Add fndecl argument.  Use
      	targetm.calls.static_chain.
      	* df-scan.c (df_need_static_chain_reg): Remove.
      	(df_get_entry_block_def_set): Use targetm.calls.static_chain;
      	consolodate static chain handling.
      	* doc/tm.texi: Document new hooks.
      	* emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
      	(init_emit_regs): Don't initialize them.
      	* expr.h (prepare_call_address): Update decl.
      	* final.c (profile_function): Use targetm.calls.static_chain.
      	* function.c (expand_function_start): Likewise.
      	* rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
      	* stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
      	only clobber registers.
      	* targhooks.c (default_static_chain): New.
      	(default_asm_trampoline_template, default_trampoline_init): New.
      	(default_trampoline_adjust_address): New.
      	* targhooks.h: Declare them.
      	* varasm.c (assemble_trampoline_template): Use
      	targetm.asm_out.trampoline_template.  Make the memory block const
      	and set its size.
      
      From-SVN: r151983
      Richard Henderson committed
    • re PR bootstrap/41395 (Revision 151800 failed bootstrap) · 2df373c2
      2009-09-22  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/41395
      	* tree-dfa.c (get_ref_base_and_extent): Handle trailing
      	arrays really properly.
      
      	* gcc.c-torture/execute/pr41395-1.c: New testcase.
      	* gcc.c-torture/execute/pr41395-2.c: Likewise.
      
      From-SVN: r151981
      Richard Guenther committed
    • re PR objc++/41430 (exception handling testsuite failures in objc++) · cf76ef1a
      2009-09-22  Richard Guenther  <rguenther@suse.de>
      
      	PR objc++/41430
      	* Make-lang.in (objcp-lang.o): Add $(EXCEPT_H) dependency.
      	* objcp-lang.c (LANG_HOOKS_EH_PERSONALITY): Define.
      	(LANG_HOOKS_EH_RUNTIME_TYPE): Likewise.
      	(objcxx_eh_personality): New function.
      
      From-SVN: r151979
      Richard Guenther committed
    • re PR bootstrap/41405 (Bootstrap fails on *-apple-darwin* due to revision 151815) · 65f753a0
      	PR bootstrap/41405
      	* dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
      	add_call_src_coords_attributes, add_high_low_attributes,
      	gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
      	gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
      	dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
      	when -gdwarf-2 -gstrict-dwarf.
      	(loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
      	-gdwarf-[23] -gstrict-dwarf.
      	(address_of_int_loc_descriptor, loc_descriptor,
      	loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
      	DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
      	* common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
      
      	* gfortran.dg/debug/pr37738.f: Add -gno-strict-dwarf to dg-options.
      	* gfortran.dg/debug/pr35154-dwarf2.f: Likewise.
      	* g++.dg/debug/dwarf2/explicit-constructor.C: Likewise.
      	* g++.dg/debug/dwarf2/imported-module-2.C: Likewise.
      	* g++.dg/debug/dwarf2/imported-module-3.C: Likewise.
      	* g++.dg/debug/dwarf2/imported-module-4.C: Likewise.
      	* g++.dg/debug/dwarf2/namespace-1.C: Likewise.
      	* objc.dg/dwarf-2.m: Likewise.
      
      From-SVN: r151978
      Jakub Jelinek committed
    • rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes for __builtin_altivec_vcmpgt{sb,uh,sh,uw}. · 9190e0a9
      	* config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
      	for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
      
      From-SVN: r151977
      Jakub Jelinek committed
    • reload1.c (reload): Call wrap_constant when substituting reg for equiv inside of DEBUG_INSNs. · 39dbcfc3
      	* reload1.c (reload): Call wrap_constant when substituting
      	reg for equiv inside of DEBUG_INSNs.
      
      	* gcc.dg/20090922-1.c: New test.
      
      From-SVN: r151976
      Jakub Jelinek committed
    • configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm. · db1cf15c
      2009-09-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
      
      * configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm.
              * configure: Regenerate.
              * config.h.in: Ditto.
      
      From-SVN: r151972
      Iain Sandoe committed
    • re PR preprocessor/38987 (Including a precompiled header from another header… · 9a8a2b7a
      re PR preprocessor/38987 (Including a precompiled header from another header causes invalid assembly to be generated)
      
      2009-09-22  Richard Guenther  <rguenther@suse.de>
      
      	PR pch/38987
      	* files.c (pch_open_file): Disallow non-toplevel PCH inclusion.
      
      From-SVN: r151970
      Richard Guenther committed
    • re PR tree-optimization/41428 (CCP doesn't fold all comparisons it could) · f61e18ec
      2009-09-22  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/41428
      	* tree-ssa-ccp.c (ccp_fold_stmt): New function.
      	(ccp_finalize): Pass it to substitute_and_fold.
      
      	* g++.dg/tree-ssa/pr41428.C: New testcase.
      
      From-SVN: r151969
      Richard Guenther committed
    • tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare. · ff7ffb8f
      2009-09-22  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
      	(substitute_and_fold): Adjust prototype.
      	* tree-vrp.c (vrp_evaluate_conditional): Make static.
      	(simplify_stmt_using_ranges): Likewise.
      	(fold_predicate_in): Move here from tree-ssa-propagate.c.
      	(vrp_fold_stmt): New function.
      	(vrp_finalize): Pass it to substitute_and_fold.
      	* tree-flow.h (vrp_evaluate_conditional): Remove.
      	(simplify_stmt_using_ranges): Likewise.
      	* tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
      	* tree-ssa-copy.c (fini_copy_prop): Likewise.
      	* tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
      	member.
      	(fold_predicate_in): Move to tree-vrp.c.
      	(substitute_and_fold): Use the callback instead of calling into
      	tree-vrp.c functions directly.
      
      From-SVN: r151968
      Richard Guenther committed
    • dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned comparison warning on rs6000. · 8b659ecb
      	* dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
      	comparison warning on rs6000.
      
      From-SVN: r151967
      Jakub Jelinek committed
    • re PR middle-end/41429 (gomp tests timeout with -fpic) · 40742b42
      	PR middle-end/41429
      	* tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
      	GIMPLE_EH_MUST_NOT_THROW cleanup.
      	(verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
      
      	* g++.dg/gomp/pr41429.C: New test.
      
      From-SVN: r151966
      Jakub Jelinek committed
    • Correct the copyright year. It is not 2006 or 2007. · c8c1ca58
      From-SVN: r151961
      Peter O'Gorman committed
    • re PR middle-end/41260 (major regressions on *-apple-darwin10 at -m64 caused by r147995) · c9c80434
      PR middle-end/41260
      * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
      * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
      LIB_SPEC for darwin10 and later since it always uses the unwinder in
      libSystem which is derived from the gcc 4.2.1 unwinder.
      
      From-SVN: r151960
      Jack Howarth committed
    • re PR middle-end/41357 (libgomp build fail) · e0fd7469
      	PR middle-end/41357
      	* varasm.c (default_encode_section_info): Copy TLS model into
      	sym_ref flags regardless of backend support for TLS, for all
      	model types except TLS_MODEL_EMULATED.
      
      From-SVN: r151959
      Dave Korn committed
    • re PR bootstrap/41404 (expr.c undefined reference while linking jc1) · cf09842e
      	PR bootstrap/41404
      	* dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
      	we can handle it correctly.
      
      From-SVN: r151958
      Dave Korn committed
    • Daily bump. · 1b6429d7
      From-SVN: r151957
      GCC Administrator committed
  2. 21 Sep, 2009 4 commits