OSDN Git Service

c.opt (Wformat-contains-nul): Add warning attribute.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index f60a91b..99c65da 100644 (file)
@@ -1,3 +1,187 @@
+2007-04-23  Nick Clifton  <nickc@redhat.com>
+
+       * c.opt (Wformat-contains-nul): Add warning attribute.
+
+2007-04-23  Jan Hubicka  <jh@suse.cz>
+
+       * function.c (init_function_start): Don't init line number info.
+       (expand_function_end): Update.
+       (reset_block_changes, record_block_change, finalize_block_changes,
+       check_block_change, free_block_changes): Kill.
+       * function.h (reset_block_changes, record_block_change,
+       finalize_block_changes, check_block_change, free_block_changes): Remove
+       prototypes.
+       (struct function): Remove ib_boundaries_block.
+       * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
+       Use curr_insn_locator to initialize locator.
+       (emit_line_note): Remove.
+       * cfgexpand.c (expand_gimple_cond_expr): Update.
+       (construct_exit_block): Likewise.
+       (tree_expand_cfg): Initialize/finalize locators.
+       * expr.c (expand_expr_real): Update.
+       * cfglayout.c (line_locators_locs, line_locators_lines,
+       file_locators_locs, file_locators_files): Remove.
+       (set_block_levels): Move to cfgexpand.c.
+       (insn_locators_initialize): Remove.
+       (pass_insn_locators_initialize): Remove.
+       (locations_locators_locs, locations_locators_vals): New static vars.
+       (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
+       Likewise.
+       (insn_locators_alloc, insn_locators_finalize,
+       set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
+       New functions.
+       (locator_location): New.
+       (locator_line, locator_file): Rewrite.
+       * rtl.h (emit_line_note): Kill.
+       (insn_locators_alloc, insn_locators_finalize,
+       set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
+       Declare.
+       * tree-inline.c (initialize_cfun): Do not initialize
+       ib_boundaries_block.
+       * passes.c (pass_insn_locators_initialize): Remove.
+
+2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR middle-end/31448
+       * expr.c (reduce_to_bit_field_precision): Handle
+       CONST_INT rtx's.
+
+2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR tree-optimization/24659
+       * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
+       OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
+       (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
+       * genopinit.c (optabs): Rename vec_pack_mod_optab
+       to vec_pack_trunc_optab.
+       * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
+       early for scalar floating point operands for NOP_EXPR.
+       (vectorizable_type_promotion): Ditto.
+       * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
+       vec_pack_trunc_optab.
+       (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
+
+       * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
+       * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
+       Rename from VEC_PACK_MOD_EXPR.
+       (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
+       * expr.c (expand_expr_real_1): Ditto.
+       * tree-inline.c (estimate_num_insns_1): Ditto.
+       * tree-vect-generic.c (expand_vector_operations_1): Ditto.
+
+       * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
+       (vec_unpacks_lo_v4sf): Ditto.
+       (vec_pack_trunc_v2df): Ditto.
+       (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
+       (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
+       (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
+
+       * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
+       vec_pack_mod_v8hi.
+       (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
+
+       * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
+       Rename from VEC_PACK_MOD_EXPR.  This expression also represent
+       packing of floating point operands.
+       [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
+       represent unpacking of floating point operands.
+       * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
+       [vec_unpacks_hi]: Ditto.
+       [vec_unpacks_lo]: Ditto.
+
+2007-04-22  Jan Hubicka  <jh@suse.cz>
+
+       * final.c (rest_of_handle_final): Call
+       targetm.asm_out.constructor/targetm.asm_out.destructor
+       * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
+       proper priority via decl_*_priority_insert.
+       * c-common.c (c_expand_body): Likewise.
+
+2007-04-22  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/29789
+       * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
+       (rewrite_reciprocal): New helper split out from
+       determine_invariantness_stmt.
+       (rewrite_bittest): Likewise.
+       (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
+       A & (1 << B) if (1 << B) is loop invariant but (A >> B)
+       is not.
+
+2007-04-22  Revital Eres  <eres@il.ibm.com>
+
+       * loop-unroll.c (var_to_expand): New field to support also
+       insns of the form x = something + x.
+       (analyze_insn_to_expand_var): Use it.
+       (expand_var_during_unrolling): Likewise.
+
+2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
+
+       * predict.c: Include pointer-set.h.
+       (bb_predictions): New variable.
+       (tree_predicted_by_p, tree_predict_edge,
+       remove_predictions_associated_with_edge): Use bb_predictions map
+       instead of bb->predictions.
+       (clear_bb_predictions, assert_is_empty): New functions.
+       (combine_predictions_for_bb): Use bb_predictions map.  Call
+       clear_bb_predictions.
+       (tree_estimate_probability): Create and free bb_predictions map.
+       * Makefile.in (predict.o): Add pointer-set.h dependency.
+       * basic-block.h (struct basic_block_def): Remove predictions
+       field.
+       * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
+
+2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/31480
+       * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
+       is null.
+
+2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * timevar.c (timevar_print): Change reference of --disable-checking to
+       --enable-checking=release.  Also warn if assert checking is disabled.
+
+2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR C/30265
+       * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
+       decl as addressable if the compound literal was marked as
+       addressable.
+       Mark the decl as a gimple register if it is a complex or
+       vector decl and does not live in memory.
+
+2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
+       (GENERIC_NEXT): New function macro.
+       (PHI_CHAIN): Use phi_node's new chain variable.
+       (tree_phi_node): Change tree_common to tree_base
+       and add the chain field.
+       * tree-phinodes.c (make_phi_node): Don't set
+       TREE_TYPE on the new node.
+       * c-decl.c (lang_tree_node): Use GENERIC_NEXT
+       instead of checking GIMPLE_TUPLE_P in chain_next.
+       * tree-vect-transform.c
+       (get_initial_def_for_induction): Look at
+       PHI_RESULT_TREE for the type of the phi node.
+       (update_vuses_to_preheader): Use PHI_CHAIN
+       instead of TREE_CHAIN on the phi node.
+       * tree-ssa-structalias.c (compute_points_to_sets):
+       Likewise.
+       (ipa_pta_execute): Likewise.
+
+2007-04-21  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/31136
+       * fold-const.c (fold_unary): Call fold_convert_const on the
+       original tree.
+
+2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcse.c (store_killed_in_insn): Handle PARALLELs.
+       (store_killed_in_pat): New.
+
 2007-04-20  Richard Henderson  <rth@redhat.com>
 
        PR target/31628