1. 28 Sep, 2009 6 commits
    • 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 13 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
    • v850.h (FUNCTION_VALUE): Remove. · 14a878f3
      	* config/v850/v850.h (FUNCTION_VALUE): Remove.
      	* config/v850/v850.c (v850_function_value): New function.
      	(TARGET_FUNCTION_VALUE): Define.
      
      From-SVN: r152180
      Anatoly Sokolov committed
    • tree-vect-transform.c (vectorizable_call): Call mark_symbols_for_renaming after… · 7411b8f0
      tree-vect-transform.c (vectorizable_call): Call mark_symbols_for_renaming after vect_finish_stmt_generation.
      
      	* tree-vect-transform.c (vectorizable_call): Call
      	mark_symbols_for_renaming after vect_finish_stmt_generation.
      
      From-SVN: r152173
      Jakub Jelinek committed
    • dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2 to loc_descriptor_from_tree. · 94c08201
      	* dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
      	to loc_descriptor_from_tree.
      	(add_location_or_const_value_attribute): Pass 0 instead of 2
      	for decl_by_reference_p decls.
      
      From-SVN: r152172
      Jakub Jelinek committed
    • Add myself as a plug-in maintainer. · 057de1d2
      From-SVN: r152170
      Rafael Espindola committed
    • re PR middle-end/41463 (Another get_ref_base_and_extent problem) · 79441eca
      2009-09-25  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/41463
      	* tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
      	arrays again.
      
      	* gcc.c-torture/execute/pr41463.c: New testcase.
      
      From-SVN: r152167
      Richard Guenther committed
    • Fix nits · 6ef41fd0
      From-SVN: r152166
      Eric Botcazou committed
    • ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language specific node. · 7948ae37
              ada/
              * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
              specific node.  Representative array type for VECTOR_TYPE entities.
              * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
              Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
              (gnat_types_compatible_p): Handle VECTOR_TYPEs.
              (convert): Likewise.  Arrange to produce VECTOR_CST out of constant
              array aggregates for VECTOR_TYPE entities.
              (unchecked_convert): Likewise.
              (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
              converted to the associated TYPE_REPRESENTATIVE_ARRAY.
              (handle_pure_attribute, handle_sentinel_attribute,
              handle_noreturn_attribute, handle_malloc_attribute,
              handle_vector_size_attribute): Replace uses of qE format by qs.
              Remove GCC_DIAG_STYLE definition.
              * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
              vector input to representative array type on entry.
              <N_Op_Eq, etc>: Likewise.
              * gcc-interface/gigi.h (maybe_vector_array): Declare.
              (VECTOR_TYPE_P): New predicate.
              * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
      
              testsuite/
              * gnat.dg/sse_nolib.adb: New testcase.
      
      From-SVN: r152165
      Olivier Hainque committed