This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: complex float support and 64 bit hosts
- To: wilson at cygnus dot com
- Subject: Re: complex float support and 64 bit hosts
- From: craig at jcb-sc dot com
- Date: 6 Aug 1999 17:39:58 -0000
- Cc: egcs-patches at egcs dot cygnus dot com
- References: <199908060258.TAA21313@ada.cygnus.com.cygnus.com>
>We can perhaps use the same technique to solve our 64-bit mips problem with
>complex float. The n32/n64 ABIs imply that complex float values are supposed
>to be returned in two FP registers. There is still a problem for complex float
>parameters, as the ABI does not specify that they are passed in two FP
>registers. Instead, it appears that they get passed in one general purpose
>register. If we are willing to violate the ABI, we could pass them in two
>separate registers instead.
For now, it's probably best to assume that any ABI that doesn't clearly
and precisely mandate exactly what a complex type *is* (in terms of how
languages like C++ see them) and how it is to be passed, is broken wrt
to complex types.
In that case, GCC should at least get this stuff working by treating
a complex FOO type exactly as it does "struct { FOO r; FOO i; };".
Then, document any concerns about ABI ambiguity or compatibility in the
known-bugs list for the pertinent systems.
tq vm, (burley)