OSDN Git Service

* rs6000.c (function_arg): Unnamed vector arguments go in memory.
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Nov 2001 02:04:23 +0000 (02:04 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Nov 2001 02:04:23 +0000 (02:04 +0000)
        Remove unused attribute for named.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47466 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index af7ef49..32f3649 100644 (file)
@@ -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
index bf7626f..ffeae83 100644 (file)
@@ -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;