PATCH [mainline] Altivec PPC-DARWIN ABI Parameter Passing with Varargs
Fariborz Jahanian
fjahanian@apple.com
Wed Apr 7 17:26:00 GMT 2004
This patch fixes couple of bugs in passing vectors to vararg functions
in situations where
the vector need be passed in either GPR5-GPR8 or GPR9-GPR10. Patch
targets the
32bit ABI problem (normal or mixed mode). David, could you see if this
will impact
the AIX's 64bit ABI in any way, thanks. I have attached a crude test
case for testing
a variety of scenarios. ppc-darwin bootstrap dejagnu test pending.
- Fariborz Jahanian (fjahanian@apple.com)
OK for mainline?
2004-04-07 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/rs6000.c (rs6000_mixed_function_arg): Add
new patterns for vector varargs going into GPRs.
(function_arg): call rs6000_mixed_function_arg when vector
varargs need to go into GPRs.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: altivec-vararg.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040407/7f239dc2/attachment.c>
-------------- next part --------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: altivec-vararg-patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040407/7f239dc2/attachment.txt>
More information about the Gcc-patches
mailing list