OSDN Git Service

* store-motion.c: Many cleanups to make this pass a first-class
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 888a769..877b8a1 100644 (file)
@@ -1,3 +1,184 @@
+2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * store-motion.c: Many cleanups to make this pass a first-class
+       citizen instead of an appendix to gcse load motion.  Add TODO list
+       to make this pass faster/cleaner/better.
+
+       (struct ls_expr): Post gcse.c-split cleanups.
+       Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
+       "stores" field to "avail_stores".
+       (pre_ldst_mems): Rename to store_motion_mems.
+       (pre_ldst_table): Rename to store_motion_mems_table.
+       (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
+       (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
+       (ldst_entry): Rename to st_expr_entry, update users.
+       (free_ldst_entry): Rename to free_st_expr_entry, update users.
+       (free_ldst_mems): Rename to free_store_motion_mems, update users.
+       (enumerate_ldsts): Rename to enumerate_store_motion_mems, update caller.
+       (first_ls_expr): Rename to first_st_expr, update users.
+       (next_ls_expr): Rename to next_st_expr, update users.
+       (print_ldst_list): Rename to print_store_motion_mems.  Print names of
+       fields properly for store motion instead of names inherited from load
+       motion in gcse.c.
+       (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
+       (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
+       are done with it.
+
+       (ae_kill): Rename to st_kill, update users.
+       (ae_gen): Rename to st_avloc, update users.
+       (transp): Rename to st_transp, update users.
+       (pre_insert_map): Rename to st_insert_map, update users.
+       (pre_delete_map): Rename to st_delete_map, update users.
+       (insert_store, build_store_vectors, free_store_memory,
+       one_store_motion_pass): Update for abovementioned changes.
+
+       (gcse_subst_count, gcse_create_count): Remove.
+       (one_store_motion_pass): New statistics counters "n_stores_deleted"
+       and "n_stores_created", local variables.
+
+       (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
+       use for_each_rtx.
+
+       (regvec, compute_store_table_current_insn): Remove.
+       (reg_set_info, reg_clear_last_set): Remove.
+       (compute_store_table): Use DF caches instead of local dataflow
+       solvers.
+
+2009-05-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-objc-common.c (c_tree_printer): Print identifiers with
+       pp_identifier, not pp_string.  Mark "({anonymous})" for
+       translation.
+       * c-pretty-print.c (pp_c_ws_string): New.
+       (pp_c_cv_qualifier, pp_c_type_specifier,
+       pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
+       pp_c_storage_class_specifier, pp_c_function_specifier,
+       pp_c_attributes, pp_c_bool_constant, pp_c_constant,
+       pp_c_primary_expression, pp_c_postfix_expression,
+       pp_c_unary_expression, pp_c_shift_expression,
+       pp_c_relational_expression, pp_c_equality_expression,
+       pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
+       use pp_string and pp_c_ws_string in place of pp_identifier and
+       pp_c_identifier for non-identifiers.  Mark English strings for
+       translation.
+       * c-pretty-print.h (pp_c_ws_string): Declare.
+
+2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
+           Roland McGrath <roland@redhat.com>
+
+       * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id
+       support.
+       (ENABLE_LD_BUILDID): New configuration option.
+       * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
+       (LINK_BUILDID_SPEC): New macro.
+       (init_spec): If defined, prepend it between LINK_EH_SPEC and
+       link_spec.
+       * doc/install.texi: Document --enable-linker-build-id option.
+       * configure: Rebuild.
+       * config.in: Rebuild.
+
+2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
+       MIPS_GP_SAVE_AREA_SIZE): Define new macros.
+       (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
+       MIPS_GP_SAVE_AREA_SIZE.
+       * config/mips/mips.c (struct mips_frame_info): Update comment
+       before arg_pointer_offset and hard_frame_pointer_offset.
+       (mips_compute_frame_info): Update diagram before function: to
+       correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
+       indicate the position of frame_pointer_rtx with -fstack-protector and
+       to show args_size.  Don't allocate cprestore area for leaf functions
+       if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
+       cprestore_size.
+       (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
+
+2009-04-30  Michael Matz  <matz@suse.de>
+
+       PR tree-optimization/39955
+       * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
+
+2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * ira.c (setup_cover_and_important_classes):  Use safe macro
+       REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
+       directly.
+       * genpreds.c (write_tm_preds_h):  Output suitable definition of
+       REG_CLASS_FOR_CONSTRAINT.
+
+2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
+
+       * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
+       instead of an int.
+       * bitmap.c (bitmap_descriptor): Likewise.
+       * ggc-common.c (loc_descriptor): Likewise.
+       * varray.c (varray_descriptor): Likewise.
+       * vec.c (vec_descriptor): Likewise.
+
+2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * Makefile.in (dce.o): Add $(EXCEPT_H).
+       * dce.c: Include except.h and delete redundant vector definitions.
+       (deletable_insn_p): Return false for non-call insns that can throw
+       if DF is running.
+
+2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * gcse.c (ae_gen): Remove.
+       (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
+       and make non-static function to make it available in store-motion.c.
+       Update call sites with search-and-replace.
+       (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
+       extract_mentioned_regs, extract_mentioned_regs_helper,
+       find_moveable_store, compute_store_table, load_kills_store, find_loads,
+       store_killed_in_insn, store_killed_after, store_killed_before,
+       build_store_vectors, insert_insn_start_basic_block, insert-store,
+       remove_reachable_equiv_notes, replace_store_insn, delete_store,
+       free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
+       execute_rtl_store_motion, pass_rtl_store_motion): Move to...
+       * store-motion.c: ...new file.  Also copy data structures from gcse.c
+       and clean up to remove parts not used by store motion.
+       * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
+       * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
+
+2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       PR target/38571
+       * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
+       when optimizing for size.
+
+2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * gcse.c (gcse_constant_p): Fix typo in last change.
+
+2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
+
+       * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
+
+2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
+
+       * gcse.c (gcse_constant_p): Make sure the constant is sharable.
+
+2009-04-29  James E. Wilson  <wilson@codesourcery.com>
+
+       * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
+       CONST_HIGH_PART result.
+
+2009-04-29  Anatoly Sokolov  <aesok@post.ru>
+
+       * config/avr/avr.c (initial_elimination_offset): Rename to
+       avr_initial_elimination_offset.
+       (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
+       change return type to bool.
+       (avr_can_eliminate): New function.
+       * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
+       (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
+       (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
+       * config/avr/avr-protos.h (initial_elimination_offset) : Rename to
+       avr_initial_elimination_offset.
+       (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
+       (avr_initial_elimination_offset): Define.
+
 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
             Steven Bosscher  <steven@gcc.gnu.org>