[Patch] Unnamed vector args passing for ppc linux 32 bit
Geoff Keating
geoffk@geoffk.org
Thu Dec 18 13:49:00 GMT 2003
"Hartmut Penner" <HPENNER@de.ibm.com> writes:
> 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
This is OK, together with the testcase.
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Gcc-patches
mailing list