will multi-register returns get fixed?

Michael Matz matz@suse.de
Fri Jun 6 20:45:00 GMT 2003


Hi,

On Fri, 6 Jun 2003, David Mosberger wrote:

> However, I don't think the problem is fixed in general.  If I try to
> return a pair of 32-bit "long" values, I get:

I suppose you mean a struct by value?  Well, the x86 ABI defines to return
struct by value in caller-provided memory, to which a pointer is passed as
first hidden parameter.  _Even_ if such struct is small enough to fit into
one or two registers (e.g. even if it contains only one int).


Ciao,
Michael.



More information about the Gcc mailing list