tree-vectorizer.c: Fix documentation.
[gcc.git] / gcc / ChangeLog
index 3bc4bceb5f4f80d236bb2af36f5b649013855913..2730b6a71ceef36cfd5dbc9547e605230e240428 100644 (file)
@@ -1,3 +1,232 @@
+2010-09-16  Ira Rosen  <irar@il.ibm.com>
+
+       * tree-vectorizer.c: Fix documentation.
+       * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
+       (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
+       is_pattern_stmt_p, is_loop_header_bb_p,
+       stmt_vinfo_set_inside_of_loop_cost,
+       stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
+       known_alignment_for_access_p): Likewise.
+       * tree-vect-loop.c: Fix documentation.
+       (vect_get_cost): Start function name from new line.
+       * tree-vect-data-refs.c: Fix documentation.
+       * tree-vect_stmts.c: Likewise.
+       (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
+       (vectorizable_store): Free vec_oprnds if allocated.
+       (vectorizable_condition): Initialize several variables to avoid
+       warnings.
+       * tree-vect-slp.c: Fix documentation.
+
+2010-09-16  Richard Guenther  <rguenther@suse.de>
+
+       * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
+       is TS_TRANSLATION_UNIT_DECL.
+       (initialize_tree_contains_struct): Adjust.
+       (all_translation_units): New global vector.
+       (build_translation_unit_decl): New function.
+       * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
+       (struct tree_translation_unit_decl): New.
+       (all_translation_units): Declare.
+       (union tree_node): Add translation_unit_decl member.
+       (build_translation_unit_decl): Declare.
+       * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
+       * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
+       New function.
+       (pack_value_fields): Call it.
+       (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
+       (lto_output_ts_translation_unit_decl_tree_pointers): New function.
+       (lto_output_tree_pointers): Call it.
+       * lto-streamer-in.c (lto_input_tree_ref): Handle references
+       to TRANSLATION_UNIT_DECL.
+       (unpack_ts_translation_unit_decl_value_fields): New function.
+       (unpack_value_fields): Call it.
+       (lto_input_ts_translation_unit_decl_tree_pointers): New function.
+       (lto_input_tree_pointers): Call it.
+       * lto-streamer.c (check_handled_ts_structures): Adjust.
+       * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
+       * c-decl.c (all_translation_units): Remove.
+       (pop_scope): Use build_translation_unit_decl.
+       (collect_all_refs): Adjust.
+       (for_each_global_decl): Likewise.
+       (c_write_global_declarations): Likewise.
+
+2010-09-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/45686
+       * fold-const.c (fold_checksum_tree): Change slot from const void **
+       to void **, use CONST_CAST_TREE to store into *slot.
+
+2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md: Remove unneeded empty conditions and
+       preparation statements from expanders.
+       * config/i386/mmx.md: Ditto.
+       * config/i386/sse.md: Ditto.
+
+2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
+
+2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR rtl-optimization/45593
+       * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
+       insns that were in delay slots as stand-alone insns.
+
+2010-09-15  Ian Lance Taylor  <iant@google.com>
+
+       * incpath.c (remove_duplicates): If name is not a directory, issue
+       a warning rather than an error.
+
+2010-09-15  Martin Jambor  <mjambor@suse.cz>
+
+       PR middle-end/45644
+       * tree-sra.c (create_access): Check for bit-fields directly.
+
+2010-09-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/45633
+       * tree-cfg.c (verify_gimple_assign_binary): Allow
+       MINUS_EXPR with lhs and rhs1 pointer vector and
+       rhs2 sizetype vector.
+       * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
+       or vector pointer use TER to optimize pointer subtraction.
+
+2010-09-15  Jie Zhang  <jie@codesourcery.com>
+
+       * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
+       fcmpd to fcmps.
+
+2010-09-15  Ian Lance Taylor  <iant@google.com>
+
+       * config/i386/i386.md (truncxf<mode>2): Fix indentation.
+
+2010-09-15  Ian Lance Taylor  <iant@google.com>
+
+       * function.c (get_arg_pointer_save_area): Set
+       arg_pointer_save_area_init to true.
+
+2010-09-15  Martin Jambor  <mjambor@suse.cz>
+
+       * tree-sra.c (generate_subtree_copies): Updated comment.
+       (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
+       obtained from the statement iterator instead.
+       (load_assign_lhs_subreplacements): Removed parameters lhs and
+       right_offset, which is obtained from top_racc instead.  Parameter lacc
+       is now expected to be the root of the processed tree rather than root's
+       first child.  Updated all callers.
+
+2010-09-15  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/pdp11/pdp11.c (register_move_cost): Rename to
+       pdp11_register_move_cost.
+       * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
+       pdp11_register_move_cost.
+       * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
+       pdp11_register_move_cost instead of register_move_cost.
+
+2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
+
+       * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
+       pattern for vmovn. Expansion in case of non 
+       -mvectorize-with-neon-quad.
+       (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
+       non- -mvectorize-with-neon-quad case.
+       (move_lo_quad_<mode>): New expansion to vmov into low part.
+       (move_hi_quad_<mode>): New expansion to vmov into high part.
+       (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
+       (move_lo_quad_v4sf): Likewise.
+       (move_lo_quad_v8hi): Likewise.
+       (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
+       low part.
+       (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
+       high part.
+       * config/arm/iterators.md (ANY128): New mode iterator.
+       (V_narrow_pack): New mode attribute.
+       (V_HALF): Add attribute.
+       (V_DOUBLE): Add attribute.
+       (V_mode_nunits): Add attribute.
+
+2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
+       is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
+
+2010-09-15  Olivier Hainque  <hainque@adacore.com>
+           Jose Ruiz  <ruiz@adacore.com>
+
+       * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
+       * config/alpha/osf5-unwind.h: New file.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/45672
+       * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
+       * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
+       * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
+
+2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
+
+       * c-lang.h (struct lang_type): Add variable_size GTY option.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/45672
+       * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
+       result isn't used in memory address.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * defaults.h (UNITS_PER_SIMD_WORD): Removed.
+       * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
+       * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
+       * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
+       * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
+       * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
+
+       * target.def: Add units_per_simd_word to vectorize.
+
+       * targhooks.c (default_units_per_simd_word): New.
+       * targhooks.h (default_units_per_simd_word): Likewise.
+       * config/arm/arm.c (arm_units_per_simd_word): Likewise.
+       (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
+       * config/mips/mips.c (mips_units_per_simd_word): Likewise.
+       (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
+       * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
+       (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
+       * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
+       (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
+
+       * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
+       TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
+
+       * tree-vect-stmts.c: Don't include "tm_p.h".
+       (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
+       with targetm.vectorize.units_per_simd_word.
+
+       * system.h (UNITS_PER_SIMD_WORD): Poisoned.
+
+       * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
+
+       * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
+       (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
+
+       * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
+       TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
+
+       * doc/tm.texi: Regenerated.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * tree-vect-stmts.c: Include "tm_p.h".
+
+       * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
+       out of RTX_CODE.
+
 2010-09-14  Martin Jambor  <mjambor@suse.cz>
 
        * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
        PR tree-optimization/45470
        * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
        can throw an exception.
-       * tree-vect-stmts.c (vectorizable_call): Likewise.      
+       * tree-vect-stmts.c (vectorizable_call): Likewise.
 
 2010-09-14  DJ Delorie  <dj@redhat.com>
 
 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
        * config/arm/arm.md: (define_attr "conds"): Update comment.
-       * config/arm/sync.md (arm_sync_compare_and_swapsi): Change 
+       * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
        conds attribute to clob.
-        (arm_sync_compare_and_swapsi): Likewise.
+       (arm_sync_compare_and_swapsi): Likewise.
        (arm_sync_compare_and_swap<mode>): Likewise.
        (arm_sync_lock_test_and_setsi): Likewise.
        (arm_sync_lock_test_and_set<mode>): Likewise.
 
 2010-09-13  Olivier Hainque  <hainque@adacore.com>
 
-        * fwprop.c (forward_propagate_and_simplify): Only attach a
+       * fwprop.c (forward_propagate_and_simplify): Only attach a
        REG_EQUAL note to an insn if the destination is a register.
-        * gcse.c (try_replace_reg): Likewise.
+       * gcse.c (try_replace_reg): Likewise.
 
 2010-09-13  Richard Guenther  <rguenther@suse.de>
 
 
 2010-09-10  Richard Guenther  <rguenther@suse.de>
 
-       * tree.c (type_hash_eq): For ARRAY_TYPEs also compare
-       TYPE_SIZE.
+       * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
        (build_index_type): Implement in terms of build_range_type.
        (build_range_type): Do not allow NULL_TREE type, improve
        hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
 
 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
-        * config/arm/neon-schedgen.ml (allCores): Add support for
-       Cortex-A9.
-        * config/arm/cortex-a9-neon.md: New and partially generated.
-        * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
+       * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
+       * config/arm/cortex-a9-neon.md: New and partially generated.
+       * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
 
 2010-09-10  Richard Guenther  <rguenther@suse.de>