g++/i386: 4-byte inline struct return
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Fri Sep 18 02:04:00 GMT 1998
> I'll try this when I get back home. I think gcc should return struct
> values in registers anyway (ignoring -fpcc-struct-return) if the caller
> and callee can follow the same struct-return convention (i.e. inline and
> static functions). Is there a fallacy in my thinking?
The problem is that the ABI is already defined, caller and callee will
not follow the same convention if one of them is changed now, and the
other is in a library that we have no control over.
Regards,
Martin
More information about the Gcc
mailing list