summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-14 03:43:03 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-14 03:43:03 +0000
commit1daca59d66ab809231a45ff6cecf9e56aaebff0f (patch)
tree28af122d26cb4024415d179117c92b094f922020
parenta0222b010be43e5b942ef69ffedf8d0968dbc7e1 (diff)
downloadppe42-gcc-1daca59d66ab809231a45ff6cecf9e56aaebff0f.tar.gz
ppe42-gcc-1daca59d66ab809231a45ff6cecf9e56aaebff0f.zip
2002-02-13 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors. * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49758 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/darwin.h2
-rw-r--r--gcc/config/rs6000/sysv4.h3
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ccd976548dd..ff2c4c3d441 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2002-02-14 Aldy Hernandez <aldyh@redhat.com>
+ * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
+
+ * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
+
+2002-02-14 Aldy Hernandez <aldyh@redhat.com>
+
* config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
alternatives.
("*movv8hi_internal1"): Same.
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index cb6b4b77e64..3daf18c63fa 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -218,6 +218,8 @@ Boston, MA 02111-1307, USA. */
&& TYPE_FIELDS (STRUCT) != 0 \
&& DECL_MODE (TYPE_FIELDS (STRUCT)) == DFmode \
? MAX (MAX ((COMPUTED), (SPECIFIED)), 64) \
+ : (TARGET_ALTIVEC && TREE_CODE (STRUCT) == VECTOR_TYPE) \
+ ? MAX (MAX ((COMPUTED), (SPECIFIED)), 128) \
: MAX ((COMPUTED), (SPECIFIED)))
/* XXX: Darwin supports neither .quad, or .llong, but it also doesn't
support 64 bit powerpc either, so this just keeps things happy. */
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index c20eaa0101f..5b0befeb16b 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -397,7 +397,8 @@ do { \
SPECIFIED. */
#define ROUND_TYPE_ALIGN(TYPE, COMPUTED, SPECIFIED) \
((TARGET_ALTIVEC && TREE_CODE (TYPE) == VECTOR_TYPE) \
- ? 128 : MAX (COMPUTED, SPECIFIED))
+ ? MAX (MAX ((COMPUTED), (SPECIFIED)), 128) \
+ : MAX (COMPUTED, SPECIFIED))
#undef BIGGEST_FIELD_ALIGNMENT
#undef ADJUST_FIELD_ALIGN
OpenPOWER on IntegriCloud