1. 28 Sep, 2009 13 commits
    • dfp.exp: Run tests from c-c++-common/dfp. · 8387984e
      	* g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp.
      	* c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++.
      	* c-c++-common/dfp/func-vararg-dfp.c: Ditto.
      	* c-c++-common/dfp/func-vararg-mixed.c: Ditto.
      	* c-c++-common/dfp/func-vararg-mixed-2.c: Ditto.
      
      From-SVN: r152247
      Janis Johnson committed
    • * g++.dg/dfp/dfp.exp: Fix typo. · 425a180d
      From-SVN: r152246
      Janis Johnson committed
    • target-supports.exp (check-effective-target-dfp-nocache): Fix typo that breaks the check. · efc7a2a5
      	* lib/target-supports.exp (check-effective-target-dfp-nocache):
      	Fix typo that breaks the check.
      
      From-SVN: r152245
      Janis Johnson committed
    • ada/ · 2d3a1837
              * gcc-interface/targtyps.c
              * (get_target_default_allocator_alignment):
              Account for observable alignments out of default allocators.
      
              testsuite/
              * gnat.dg (tagged_alloc_free.adb): New testcase.
      
      From-SVN: r152243
      Olivier Hainque committed
    • mangle.c (write_builtin_type): Support decimal float types. · d366d023
      	* mangle.c (write_builtin_type): Support decimal float types.
      	* g++.dg/dfp: New directory.
      	* g++.dg/dg.exp: Prune tests in dfp directory.
      	* g++.dg/dfp/dfp/exp: New.
      	* g++.dg/dfp/mangle-mode.C: New test.
      
      From-SVN: r152242
      Janis Johnson committed
    • except.h (struct eh_region_d): Add use_cxa_end_cleanup. · 384c400a
      	* except.h (struct eh_region_d): Add use_cxa_end_cleanup.
      	* except.c (gen_eh_region): Set it.
      	(duplicate_eh_regions_1): Copy it.
      	* tree-eh.c (lower_resx): Use it to determine which function
      	to call to resume.
      
      	* langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
      	* langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
      
      	* builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
      	* tree.c (build_common_builtin_nodes): Remove parameter.  Build
      	BUILT_IN_CXA_END_CLEANUP if necessary.
      	* tree.h (build_common_builtin_nodes): Update decl.
      
      	* c-common.c (c_define_builtins): Update call to
      	build_common_builtin_nodes.
      
      gcc/ada/
      	* gcc-interface/utils.c (gnat_install_builtins): Update call to
      	build_common_builtin_nodes.
      
      gcc/cp/
      	* cp-objcp-common.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
      
      gcc/fortran/
      	* f95-lang.c (gfc_init_builtin_functions): Update call to
      	build_common_builtin_nodes.
      
      gcc/java/
      	* builtins.c (initialize_builtins): Update call to
      	build_common_builtin_nodes.
      	* lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
      
      From-SVN: r152241
      Richard Henderson committed
    • spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns. · aa633255
      2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
              
              * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
      
      From-SVN: r152239
      Andrew Pinski committed
    • builtins.c (interclass_mathfn_icode): New helper. · 44e10129
      	* builtins.c (interclass_mathfn_icode): New helper.
      	(expand_builtin_interclass_mathfn): Use it here, and split folding
      	into ...
      	(fold_builtin_interclass_mathfn): ... this new folder.
      	(build_call_nofold_loc): New static helper.
      	(build_call_nofold): New wrapper macro for above.
      	(expand_builtin_int_roundingfn): Use it instead of build_call_expr.
      	(expand_builtin_pow): Ditto.
      	(expand_builtin_memset_args): Ditto.
      	(expand_builtin_printf): Ditto.
      	(expand_builtin_fprintf): Ditto.
      	(expand_builtin_sprintf): Ditto.
      	(expand_builtin_memory_chk): Ditto.
      	(expand_builtin_mempcpy_args): Ditto and don't call folders.
      	(expand_builtin_stpcpy): Ditto.
      	(expand_builtin_strcmp): Ditto.
      	(expand_builtin_strncmp): Ditto.
      	(expand_builtin_strcpy): Remove FNDECL and MODE arguments.
      	(expand_builtin_strcpy_args): Don't call folders.
      	(expand_builtin_memcmp): Ditto.
      	(expand_builtin_strncpy): Ditto, and use target.
      	(expand_builtin_memcpy): Ditto.
      	(expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
      	expand_builtin_strpbrk, expand_builtin_memmove,
      	expand_builtin_memmove_args, expand_builtin_bcopy,
      	expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
      	expand_builtin_strspn, expand_builtin_strcspn,
      	expand_builtin_fputs): Remove these.
      	(expand_builtin): Don't call the above, change calls to other
      	expanders that changed prototype.
      	(fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
      	(fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
      	fold_builtin_interclass_mathfn.
      	(fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
      	(fold_builtin_strcat): Add folding split from expand_builtin_strcat.
      
      	* fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
      	* passes.c (init_optimization_passes): Move pass_fold_builtins
      	after last phiopt pass.
      	* tree-inline.c (fold_marked_statements): When folding builtins
      	iterate over all instruction potentially generated.
      	* tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
      	earlier.
      	(fold_gimple_call): Use it to always fold calls (into potentially
      	multiple instructions).
      	* tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
      	calls into zero at this time.
      	* tree-ssa-propagate.c (substitute_and_fold): Ignore multiple 
      	statements generated by builtin folding.
      
      testsuite/
      	* gcc.dg/builtins-44.c: Use __builtin_isinf_sign when checking
      	for sign of -Inf.
      
      From-SVN: r152236
      Michael Matz committed
    • m32r.c (m32r_is_insn): Return false for debugging insns. · d813aaba
              * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
              insns.
      
      From-SVN: r152235
      Nick Clifton committed
    • for_each_selectors.h: Remove obsolete comment. · b112ce96
      2009-09-28  Johannes Singler  <singler@ira.uka.de>
      
              * include/parallel/for_each_selectors.h:  Remove obsolete comment.
      
      From-SVN: r152234
      Johannes Singler committed
    • Correct off-by-one error in changelog date. · 1d7d659d
      From-SVN: r152233
      Duncan Sands committed
    • Add support for using ggc cache tables from plugins. · 32c9b4e9
      Approved by Ian Lance Taylor.
      
      From-SVN: r152232
      Duncan Sands committed
    • Daily bump. · bd77e02d
      From-SVN: r152230
      GCC Administrator committed
  2. 27 Sep, 2009 14 commits
  3. 26 Sep, 2009 7 commits
  4. 25 Sep, 2009 6 commits
    • re PR tree-optimization/41454 (DOM miscompiles gcc.c-torture/execute/990513-1.c… · 87c93592
      re PR tree-optimization/41454 (DOM miscompiles gcc.c-torture/execute/990513-1.c at -O2 -fno-tree-vrp)
      
      	PR tree-optimization/41454
      	* tree-ssa-dom (stmts_to_rescan): Remove variable.
      	(tree_ssa_dominator_optimize): Don't allocate and free it.
      	(dom_opt_leave_block): Don't iterate over it.
      	(eliminate_redundant_computations): Don't return a value.
      	(cprop_operand, cprop_into_stmt): Ditto.
      	(optimize_stmt): Don't defer updating stmts.
      
      testsuite/
      	* gcc.dg/pr41454.c: New test.
      
      From-SVN: r152189
      Michael Matz committed
    • DWARF for Template parm pack is a gnu extension. · 7653f273
      include/ChangeLog:
      	* dwarf2.h (enum dwarf_tag): Rename DW_TAG_template_parameter_pack and
      	DW_TAG_formal_parameter_pack into DW_TAG_GNU_template_parameter_pack
      	and DW_TAG_formal_parameter_pack until DWARF 5 is out.
      
      gcc/ChangeLog:
      	* dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
      	generic_parameter_die, template_parameter_pack_die,
      	gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
      	DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
      	DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
      
      gcc/testsuite/ChangeLog:
      	* g++.dg/debug/dwarf2/template-func-params-4.C: Adjust after renaming
      	DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack
      	into DW_TAG_GNU_template_parameter_pack and
      	DW_TAG_GNU_formal_parameter_pack.
      	* g++.dg/debug/dwarf2/template-params-4.C: Likewise.
      	* g++.dg/debug/dwarf2/template-func-params-7.C: Likewise.
      
      From-SVN: r152188
      Dodji Seketeli committed
    • re PR middle-end/41469 (-fexceptions ICE in expand_gimple_stmt_1, at cfgexpand.c:1947) · 072c87d1
              PR middle-end/41469
              * tree-eh.c (lower_resx): Resolve RESX with no source region to
              __builtin_trap.
              (gate_lower_resx): New.
              (gate_lower_eh_dispatch): Rename from gate_lower_ehcontrol.
      
      From-SVN: r152185
      Richard Henderson committed
    • configure.ac: Pass any --cache-file=/dev/null option on to subconfigures. · f1a036e4
              * configure.ac: Pass any --cache-file=/dev/null option on to
              subconfigures.
              * configure: Regenerate.
      
      From-SVN: r152183
      Nick Clifton committed
    • vect.exp: Append extra parameters as separate parameters for alignment-sensitive... · 712ff3c8
      	* gcc.dg/vect/vect.exp: Append extra parameters as separate
      	parameters for alignment-sensitive -fsection-anchors tests.
      
      From-SVN: r152182
      Nathan Froyd committed
    • Add rest of new values from DWARF Version 4. · 5ae5f596
      include/
      
      	Add rest of new values from DWARF Version 4.
      	* dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias):
      	New tags.
      	(DW_FORM_ref_sig8): New name for DW_FORM_sig8.
      	(DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr,
      	DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by,
      	DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded,
      	DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required,
      	DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New
      	attributes.
      	(DW_LANG_Python): New language.
      
      From-SVN: r152181
      Cary Coutant committed