This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Irix calling conventions for complex numbers
- From: Eric Christopher <echristo at redhat dot com>
- To: "Billinghurst, David (CALCRTS)" <david dot billinghurst at comalco dot riotinto dot com dot au>
- Cc: gcc at gcc dot gnu dot org, fortran at gcc dot gnu dot org, Richard Sandiford <rsandifo at redhat dot com>
- Date: Tue, 06 Jul 2004 22:48:52 -0700
- Subject: Re: Irix calling conventions for complex numbers
- References: <8ED2FA87C8ACC04192709688DDFD5F5F436321@calttsv025.cal.riotinto.org>
> A little experimentation suggests that complex numbers are not
> beings passed or returned to IRIX libc functions such as cpow{,f,l}.
> (I will put together some examples id anyone is interested)
I'm interested. I imagine Richard is too.
> Where in gcc do I look to see if this is the case?
if (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT
&& GET_MODE_SIZE (mode) <= UNITS_PER_HWFPVALUE * 2)
return mips_return_fpr_pair (mode,
GET_MODE_INNER (mode), 0,
GET_MODE_INNER (mode),
GET_MODE_SIZE (mode) / 2);
from mips_function_value.
-eric
--
Eric Christopher <echristo@redhat.com>