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]

Re: will multi-register returns get fixed?


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.


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