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]

Re: PR target/37841: Make SPU adhere to the ABI


Michael Meissner <meissner@linux.vnet.ibm.com> writes:

> [gcc]
> 2008-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
>
> 	PR target/37841
> 	* function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
> 	is defined, use it to modify the constant offset.
>
> 	* doc/tm.texi (FUNCTION_ARG_ADJUST_OFFSET): Document new macro.
>
> 	* config/spu/spu.h (FUNCTION_ARG_ADJUST_OFFSET): New macro to move
> 	char/short arguments to the correct location as mandated by the ABI.
>
> [gcc/testsuite]
> 2008-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
>
> 	PR target/37841
> 	* gcc.target/spu/abi.c: New file.

This is OK.

Why don't you change the test case to use attribute ((noinline))
instead of th asm, and make it target independent?  I don't see
anything there specific to SPU.

Thanks.

Ian


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