This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: will multi-register returns get fixed?
- From: Michael Matz <matz at suse dot de>
- To: davidm at hpl dot hp dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 6 Jun 2003 22:45:00 +0200 (CEST)
- Subject: 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.