]> gcc.gnu.org Git - gcc.git/commitdiff
re PR target/17962 (small fp vector uses sse/mmx vectors and is not aligned)
authorRichard Henderson <rth@redhat.com>
Tue, 19 Oct 2004 19:15:31 +0000 (12:15 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Oct 2004 19:15:31 +0000 (12:15 -0700)
        PR 17962
        * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.

From-SVN: r89284

gcc/ChangeLog
gcc/stor-layout.c

index e9587a73a23797bee05cd04a52b9ad602558394a..c7616e126003ab4d9e2a4d97314040341f5d0c66 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-19  Richard Hendeson  <rth@redhat.com>
+
+       PR 17962
+       * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
+
 2004-10-19  Richard Hendeson  <rth@redhat.com>
 
        * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
index c86dd549700229d211281e6f92b1750ba4f8500f..10496b875ee46e5e655f86bfbecc6ab82735a761 100644 (file)
@@ -1576,6 +1576,10 @@ layout_type (tree type)
                                                 nunits_tree, 0);
        TYPE_SIZE (type) = int_const_binop (MULT_EXPR, TYPE_SIZE (innertype),
                                            nunits_tree, 0);
+
+       /* Always natually align vectors.  This prevents ABI changes
+          depending on whether or not native vector modes are supported.  */
+       TYPE_ALIGN (type) = tree_low_cst (TYPE_SIZE (type), 0);
         break;
       }
 
This page took 0.095385 seconds and 5 git commands to generate.