Irix calling conventions for complex numbers

Eric Christopher echristo@redhat.com
Wed Jul 7 05:49:00 GMT 2004


> 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>



More information about the Fortran mailing list