define SPLIT_COMPLEX_ARGS for Xtensa port

Bob Wilson bwilson@tensilica.com
Fri Jan 23 22:25:00 GMT 2004


This patch fixes the compat/scalar-by-value-4 test for the Xtensa port by 
changing to pass CHImode and CQImode values as separate real and imaginary 
parts.  This generally leads to better code for Xtensa processors anyway, and we 
had never specified an ABI for complex values (until now, I guess :-)  Tested 
with an xtensa-elf target and committed on the mainline and 3.4 branch.

Incidentally, I noticed that with SPLIT_COMPLEX_ARGS defined, complex function 
args have no debug info.  Is this a known problem?  I didn't see any bug reports 
for this, but I don't think there's anything specific to the Xtensa port that 
would cause it.


2004-01-23  Bob Wilson  <bob.wilson@acm.org>

	* config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
	separate real and imaginary parts.
	* config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-xt-splitcomplex.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040123/8e8ac9da/attachment.ksh>


More information about the Gcc-patches mailing list