Fix size of generic vectors with -maltivec.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 2 Sep 2004 00:01:37 +0000 (00:01 +0000)
committerFariborz Jahanian <fjahanian@gcc.gnu.org>
Thu, 2 Sep 2004 00:01:37 +0000 (00:01 +0000)
OKed by Geoff Keating.

From-SVN: r86941

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index 47a00dcf14e3faa5e23f7a49f6a9e459ad39acb7..79cf1bfb9b7213cc83f57203298f242fbeb4063f 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
+
+       * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
+       to Altivec vetors.
+
 2004-09-01  Wu Yongwei  <adah@sh163.net>
            Danny Smith  <dannysmith@users.sourceforge.net>
 
index b2b8e28e375a76749657289e172aab9b9a529465..1e92d5fe2bfc2fcfdf91febc0842dbfea9dacb20 100644 (file)
@@ -349,7 +349,8 @@ do {                                                                        \
     || TREE_CODE (STRUCT) == QUAL_UNION_TYPE)                          \
    && TARGET_ALIGN_NATURAL == 0                                        \
    ? rs6000_special_round_type_align (STRUCT, COMPUTED, SPECIFIED)     \
-   : (TARGET_ALTIVEC && TREE_CODE (STRUCT) == VECTOR_TYPE)             \
+   : (TREE_CODE (STRUCT) == VECTOR_TYPE                                        \
+      && ALTIVEC_VECTOR_MODE (TYPE_MODE (STRUCT)))                     \
    ? MAX (MAX ((COMPUTED), (SPECIFIED)), 128)                                   \
    : MAX ((COMPUTED), (SPECIFIED)))