omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Sep 2013 10:14:31 +0000 (12:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Sep 2013 10:14:31 +0000 (12:14 +0200)
* omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
* tree-vect-data-refs.c (vect_analyze_data_refs): For
simd_lane_access drs, update also DR_ALIGNED_TO.

From-SVN: r202683

gcc/ChangeLog
gcc/omp-low.c
gcc/tree-vect-data-refs.c

index 8460d0afd6422d89453bc7d8a58b7be449538b6a..12be0c39ff7627f282a63ecdb97d24b5529b3d22 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
+       * tree-vect-data-refs.c (vect_analyze_data_refs): For
+       simd_lane_access drs, update also DR_ALIGNED_TO.
+
 2013-09-18  Marek Polacek  <polacek@redhat.com>
 
        PR sanitizer/58411
index ffd12202ba1e6f7ccc11c69d46f7bc586f939556..221ae71a1c302b02ab966076293ae4a63ec21107 100644 (file)
@@ -853,6 +853,7 @@ copy_var_decl (tree var, tree name, tree type)
   TREE_NO_WARNING (copy) = TREE_NO_WARNING (var);
   TREE_USED (copy) = 1;
   DECL_SEEN_IN_BIND_EXPR_P (copy) = 1;
+  DECL_ATTRIBUTES (copy) = DECL_ATTRIBUTES (var);
 
   return copy;
 }
index 63dd36ad7eaaf46ee4518212901a3fc1d49376a5..98055ae01f8ac98a7707b1a70d479dbcfbe97dd2 100644 (file)
@@ -3067,6 +3067,8 @@ again:
                                    {
                                      DR_OFFSET (newdr) = ssize_int (0);
                                      DR_STEP (newdr) = step;
+                                     DR_ALIGNED_TO (newdr)
+                                       = size_int (BIGGEST_ALIGNMENT);
                                      dr = newdr;
                                      simd_lane_access = true;
                                    }