OSDN Git Service

./:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 0520ab3..38ac22c 100644 (file)
@@ -1,5 +1,262 @@
+2009-09-28  Easwaran Raman  <eraman@google.com>
+
+       * ifcvt.c (noce_try_abs): Recognize pattern and call
+       expand_one_cmpl_abs_nojump.
+       * optabs.c (expand_one_cmpl_abs_nojump): New function.
+       * optabs.h (expand_one_cmpl_abs_nojump): Declare.
+
+2009-09-28  Ian Lance Taylor  <iant@google.com>
+
+       PR middle-end/40500
+       * c-opts.c (c_common_handle_option): Don't set
+       warn_jump_misses_init for -Wall.
+       * doc/invoke.texi (Warning Options): Update documentation.
+
+2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Makefile.in ($(out_object_file)): Depend on
+       gt-$(basename $(notdir $(out_file))).h.
+
+2009-09-28  Richard Henderson  <rth@redhat.com>
+
+       * 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.
+
+       * c-common.c (c_define_builtins): Update call to
+       build_common_builtin_nodes.
+
+2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
+
+2009-09-28  Michael Matz  <matz@suse.de>
+
+       * 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.
+
+2009-09-28  Nick Clifton  <nickc@redhat.com>
+
+       * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
+       insns.
+
+2009-09-28  Duncan Sands  <baldrick@free.fr>
+
+       * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
+       * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
+       (register_callback): Dispatch it.
+       (invoke_plugin_callbacks): Incorporate in sanity check.
+       * ggc.h (ggc_register_cache_tab): Add declaration.
+       * ggc-common.c (ggc_register_root_tab): Simplify.
+       (const_ggc_cache_tab_t): New typedef.
+       (extra_cache_vec): New vector of dynamically added cache tables.
+       (ggc_register_cache_tab): New function.
+       (ggc_scan_cache_tab): New function.
+       (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
+       * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
+
+2009-09-27  Richard Henderson  <rth@redhat.com>
+
+       * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
+       which we remove __builtin_stack_restore.
+
+2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
+       to test for GRD_INVARIANT.
+       (simple_rhs_p): Anything that's function_invariant_p is fine.
+
+2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
+
+       * gengtype.c (main): Use plunge_files instead of plugin_output.
+
+2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
+           Rafael Avila de Espindola  <espindola@google.com>
+
+       * gengtype.c (write_root, write_roots): Add a emit_pch argument.
+       Don't print pch related info if it is false.
+       (main): Don't print pch info in plugin mode.
+
+2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
+       with dw_val_class_const_double.
+       (struct dw_val_struct): Replace val_long_long with val_double and
+       adjust for above change.
+       (output_loc_operands): Likewise.
+       (add_AT_long_long): Rename into...
+       (add_AT_double): ...this.
+       (print_die): Replace dw_val_class_long_long with
+       dw_val_class_const_double and adjust.
+       (attr_checksum): Likewise.
+       (same_dw_val_p): Likewise.
+       (size_of_die): Likewise.
+       (value_format): Likewise.
+       (output_die): Likewise.
+       (loc_descriptor) <CONST_DOUBLE>: Likewise.
+       (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
+       instead of add_AT_long_long.
+       (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
+       value with the precision of its type.
+
+2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
+
+       PR c/41476
+       * c-typeck.c (build_conditional_expr): Use the readonly and
+       volatile flags of the operand types, not of the operands itself.
+
+2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
+
+       collect2.c (main): Look for -brtl before adding libraries.
+
+2009-09-27  Jonathan Gray  <jsg@openbsd.org>
+
+       * config.gcc: Update OpenBSD targets.
+       * config/openbsd-stdint.h: New file.
+       * config/openbsd-libpthread.h: New file.
+       * config/openbsd.h: Update and break out LIB_SPEC definition.
+       * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
+       * config/i386/openbsdelf.h: Correct types.
+       * config/m68k/openbsd.h: Likewise.
+       * config/mips/openbsd.h: Likewise.
+       * config/vax/openbsd.h: Likewise.
+
+2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
+       (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
+       * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
+       of the length and zero.
+
+2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
+       (FLAGS_H): Add options.h $(REAL_H).
+       (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
+       (TREE_VECTORIZER_H): New.
+       (EBITMAP_H): Renamed from EBIMAP_H.
+       (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
+       (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
+       (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
+       (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
+       (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
+       (graphite-clast-to-gimple.o, graphite-dependences.o)
+       (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
+       (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
+       (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
+       (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
+       (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
+       (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
+       (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
+       (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
+       (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
+       updated and fixed as per above changes and per
+       check_makefile_deps.sh output.
+
+       PR bootstrap/40928
+       * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
+       * configure: Regenerate.
+
+2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * doc/install.texi: Update minimum MPC version to 0.7.
+
+2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * doc/install.texi (Binaries): Remove reference to the binary
+       distribution CD-ROM from the FSF.
+
+2009-09-26  Michael Matz  <matz@suse.de>
+
+       PR lto/40758
+       PR middle-end/41470
+       * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
+       that are mentioned in the body.
+
+2009-09-26  Michael Matz  <matz@suse.de>
+
+       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.
+
+2009-09-25  Dodji Seketeli  <dodji@redhat.com>
+
+       * 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.
+
+2009-09-25  Anatoly Sokolov  <aesok@post.ru>
+
+       * config/v850/v850.h (FUNCTION_VALUE): Remove.
+       * config/v850/v850.c (v850_function_value): New function.
+       (TARGET_FUNCTION_VALUE): Define.
+
 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
 
+       * tree-vect-stmts.c (vectorizable_call): Call
+       mark_symbols_for_renaming after vect_finish_stmt_generation.
+
        * 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
        (reg_class): Likewise.
        (REG_CLASS_NAMES): Likewise.
        * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
-       
+
        * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
        M32C.
 
 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
 
        PR bootstrap/41405
-        * common.opt: Initialize dwarf_strict to -1.
+       * common.opt: Initialize dwarf_strict to -1.
        * toplev.c (process_options): Catch unset dwarf_strict
        and set to 0 for all targets not overriding.
        * config/darwin.c (darwin_override_options): Catch unset
 
 2009-09-24  Jeff Law  <law@redhat.com>
 
-       * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks. 
+       * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
 
 2009-09-24  Richard Guenther  <rguenther@suse.de>
 
        (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 
+       * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
        to mcore_asm_trampoline_template.
        (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
 
        * doc/install.texi (avr): Remove obsolete reference site.
 
 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
-       
+
        * doc/install.texi (Binaries): Adjust AIX link.
 
 2009-09-12  Akim Demaille  <demaille@gostai.com>