aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2003-10-16 17:59:06 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2003-10-16 13:59:06 -0400
commit10f30fa883e31e2335fd4f748d8041b0f9eebd8a (patch)
tree49661fc467db8bd928dbe2f99e3c5dc06bbb6381 /gcc
parenteaed902bf7f8d086c3bc6017d52cb103057e34aa (diff)
downloadgcc-10f30fa883e31e2335fd4f748d8041b0f9eebd8a.zip
gcc-10f30fa883e31e2335fd4f748d8041b0f9eebd8a.tar.gz
gcc-10f30fa883e31e2335fd4f748d8041b0f9eebd8a.tar.bz2
rs6000.c (rs6000_va_arg): Only align vector arguments if TARGET_ALTIVEC.
* config/rs6000/rs6000.c (rs6000_va_arg): Only align vector arguments if TARGET_ALTIVEC. From-SVN: r72555
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ba69f65..40ba1c6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-15 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
+ arguments if TARGET_ALTIVEC.
+
2003-10-15 Roger Sayle <roger@eyesopen.com>
* builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index d518ed5..4635362 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -4371,7 +4371,7 @@ rs6000_va_arg (tree valist, tree type)
else
{
/* Altivec arguments must be aligned to a 128-bit boundary. */
- if (ALTIVEC_VECTOR_MODE (TYPE_MODE (type)))
+ if (TARGET_ALTIVEC && ALTIVEC_VECTOR_MODE (TYPE_MODE (type)))
{
tree vtype = TREE_TYPE (valist);
tree new_valist, modify;