This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH [mainline] Altivec PPC-DARWIN ABI Parameter Passing with Varargs



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.


Attachment: altivec-vararg.c
Description: Text document




Attachment: altivec-vararg-patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]