From: Fariborz Jahanian Date: Thu, 2 Sep 2004 00:01:37 +0000 (+0000) Subject: Fix size of generic vectors with -maltivec. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ec214fc7532cf527d9605a869a570011290a88e;p=gcc.git Fix size of generic vectors with -maltivec. OKed by Geoff Keating. From-SVN: r86941 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 47a00dcf14e..79cf1bfb9b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-09-01 Fariborz Jahanian + + * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment + to Altivec vetors. + 2004-09-01 Wu Yongwei Danny Smith diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index b2b8e28e375..1e92d5fe2bf 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -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)))