diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2001-11-30 02:04:23 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2001-11-30 02:04:23 +0000 |
commit | 20c29ebe49754fa84ce1dfedcf0a27698db9e67b (patch) | |
tree | 744e61e0e2fae28003d8b0b5dd9e75359908df7e /gcc | |
parent | 0d35f155c06d1d273c1ff2810f6f2bc45b839035 (diff) | |
download | gcc-20c29ebe49754fa84ce1dfedcf0a27698db9e67b.zip gcc-20c29ebe49754fa84ce1dfedcf0a27698db9e67b.tar.gz gcc-20c29ebe49754fa84ce1dfedcf0a27698db9e67b.tar.bz2 |
rs6000.c (function_arg): Unnamed vector arguments go in memory.
* rs6000.c (function_arg): Unnamed vector arguments go in memory.
Remove unused attribute for named.
From-SVN: r47466
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af7ef49..32f3649 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-11-29 Aldy Hernandez <aldyh@redhat.com> + + * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments + go in memory. + Remove unused attribute for named. + 2001-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * genattrtab.c (attr_rtx_1): New function containing the diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index bf7626f..ffeae83 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -2373,7 +2373,7 @@ function_arg (cum, mode, type, named) CUMULATIVE_ARGS *cum; enum machine_mode mode; tree type; - int named ATTRIBUTE_UNUSED; + int named; { enum rs6000_abi abi = DEFAULT_ABI; @@ -2399,7 +2399,7 @@ function_arg (cum, mode, type, named) if (TARGET_ALTIVEC_ABI && ALTIVEC_VECTOR_MODE (mode)) { - if (cum->vregno <= ALTIVEC_ARG_MAX_REG) + if (named && cum->vregno <= ALTIVEC_ARG_MAX_REG) return gen_rtx_REG (mode, cum->vregno); else return NULL; |