This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ABI and complex integral types
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 20 Jun 2003 14:21:43 +0200
- Subject: ABI and complex integral types
Hi,
What is the common ABI convention (if any) for passing complex integral
arguments by value to functions? Structure-like or list-like?
Currently the SPARC64 port uses a mix of both :-) For example, in order to
pass a complex int (2 x 32-bit), it reserves two 64-bit slots but loads the
whole argument in the first slot. So we end up with holes in the arguments
array (which incidentally fools the va_list handling code).
--
Eric Botcazou