This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]