OSDN Git Service

PR middle-end/42344
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index bb696ae..93969c1 100644 (file)
@@ -1,3 +1,142 @@
+2010-02-20  Alan Modra  <amodra@gmail.com>
+
+       PR middle-end/42344
+       * cgraph.h (cgraph_make_decl_local): Declare.
+       * cgraph.c (cgraph_make_decl_local): New function.
+       (cgraph_make_node_local): Use it.
+       * cgraphunit.c (cgraph_function_versioning): Likewise.
+       * ipa.c (function_and_variable_visibility): Likewise.
+
+2010-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/43121
+       * except.c (sjlj_emit_function_enter): Don't call
+       add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
+       directly.
+       * rtl.h (add_reg_br_prob_note): Remove prototype.
+
+2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       PR 41779
+       * c-common.c (conversion_warning): Remove widening conversions
+       before checking the conversion of integers to reals.
+
+2010-02-19  Mike Stump  <mikestump@comcast.net>
+
+       PR objc/43061
+       * cgraphunit.c (process_function_and_variable_attributes): Check
+       DECL_PRESERVE_P instead of looking up attribute "used".
+       * ipa-pure-const.c (check_decl): Likewise.
+       * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
+       * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
+       * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
+       instead of attribute "used".
+       * config/sol2-c.c (solaris_pragma_init): Likewise.
+       (solaris_pragma_fini): Likewise.
+
+2010-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
+       Use XCNEW instead of xcalloc.
+       (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
+       XNEW instead of xmalloc.
+       (get_fields): Use XNEWVEC instead of xmalloc.
+
+       PR debug/43084
+       * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
+       populate vars array.
+       (create_new_general_access): For debug stmts just reset value.
+       (get_stmt_accesses): For accesses within debug stmts just record them
+       using add_access_to_acc_sites instead of preventing the peeling or
+       counting them as accesses.
+
+       PR middle-end/42233
+       * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
+
+2010-02-19  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/42916
+       * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
+       instructions.
+
+2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * configure.ac: Replace all uses of changequote in macro arguments
+       with proper quoting.
+
+2010-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/42233
+       * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
+
+2010-02-19  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/42944
+       * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
+       test for aliasing with errno.
+
+2010-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/42233
+       * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
+       do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
+       * dojump.c: Include output.h.
+       (inv): New inline function.
+       (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
+       do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
+       do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
+       do_jump_by_parts_equality, do_compare_and_jump): Add PROB
+       argument, pass it down to other calls.
+       (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
+       add REG_BR_PROB note to the conditional jump.
+       * cfgexpand.c (add_reg_br_prob_note): Removed.
+       (expand_gimple_cond): Don't call it, add the probability
+       as last argument to jumpif_1/jumpifnot_1.
+       * Makefile.in (dojump.o): Depend on output.h.
+       * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
+       callers.
+       * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
+       * stmt.c (do_jump_if_equal): Likewise.
+       * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
+       * loop-unswitch.c (compare_and_jump_seq): Likewise.
+       * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
+       Likewise.
+       * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
+       * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
+       jumpifnot_1 callers.
+       (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
+       callers.
+       (store_expr): Adjust jumpifnot caller.
+       (store_constructor): Adjust jumpif caller.
+
+       PR middle-end/42233
+       * gimplify.c (gimple_boolify): For __builtin_expect call
+       gimple_boolify also on its first argument.
+
+2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
+
+       * configure.ac (gnu-unique-object): Wrap regexps using [] in
+       changequote block.
+       (__stack_chk_fail): Ditto.  Remove quadrigraphs.
+       * configure: Regenerated.
+
+2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
+       lang_hooks.types_compatible_p instead of comptypes.
+
+2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
+       (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
+       if __prefer_thumb__ is defined.
+
+2010-02-18  Martin Jambor  <mjambor@suse.cz>
+
+       PR tree-optimization/43066
+       * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
+       array with zero-sized element type.
+
 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
 
        * dwarf2out.c (add_var_loc_to_decl): Change last argument to