This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[4.2] [patch] PR25413 fix


This patch brings the fix for pr25413 as in
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00082.html to 4.2 branch (with
the rs6000 bits fixed, and with the testcase fixes from
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01277.html).

Bootstrapped on i386-linux and powerpc64-linux (with --enable-werror), and
yet to complete full regression testing (make -k check). I'll commit it to
4.2 branch in a day or two if there are no objections (and no regressions).

dorit

ChangeLog:

2007-07-23  Dorit Nuzman  <dorit@il.ibm.com>
           Devang Patel  <dpatel@apple.com>

       PR tree-optimization/25413
       * targhooks.c (default_builtin_vector_alignment_reachable): New.
       * targhooks.h (default_builtin_vector_alignment_reachable): New.
       * tree.h (contains_packed_reference): New.
       * expr.c (contains_packed_reference): New.
       * tree-vect-analyze.c (vector_alignment_reachable_p): New.
       (vect_enhance_data_refs_alignment): Call
       vector_alignment_reachable_p.
       * target.h (vector_alignment_reachable): New builtin.
       * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
       * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
       (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.

testsuite/ChangeLog:

2007-07-23  Dorit Nuzman  <dorit@il.ibm.com>
           Devang Patel  <dpatel@apple.com>
           Uros Bizjak  <ubizjak@gmail.com>

       PR tree-optimization/25413
       * lib/target-supports.exp
(check_effective_target_vect_aligned_arrays):
       New procedure to check if arrays are naturally aligned to the vector
       alignment boundary.
       * gcc.dg/vect/vect-align-1.c: New.
       * gcc.dg/vect/vect-align-2.c: New.
       * gcc.dg/vect/pr25413.c: New.
       * gcc.dg/vect/pr25413a.c: New.

(See attached file: patch4_2.txt)

Attachment: patch4_2.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]