[Patch] Unnamed vector args passing for ppc linux 32 bit

Hartmut Penner HPENNER@de.ibm.com
Tue Dec 16 13:27:00 GMT 2003


Geoff,
      my understanding is, that for ppc linux 32-bit, unnamed arguments are
passed via stack.
This was changed from 3.3 to head by the implementation of
'USE_ALTIVEC_FOR_ARG_P'.

      regards, Hartmut

Suggested patch:

ChangeLog:

      * gcc/config/rs6000/rs6000.h (USE_ALTIVEC_FOR_ARG_P): Don't check for
SVR4 abi.

Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.558
diff -u -r1.558 rs6000.c
--- rs6000.c      15 Dec 2003 15:23:11 -0000    1.558
+++ rs6000.c      16 Dec 2003 12:03:06 -0000
@@ -3722,7 +3722,7 @@
   (ALTIVEC_VECTOR_MODE (MODE)                        \
    && (CUM)->vregno <= ALTIVEC_ARG_MAX_REG           \
    && TARGET_ALTIVEC_ABI                       \
-   && (DEFAULT_ABI == ABI_V4 || (NAMED)))
+   && (NAMED))

 /* Return a nonzero value to say to return the function value in
    memory, just as large structures are always returned.  TYPE will be






More information about the Gcc-patches mailing list