This is the mail archive of the gcc-patches@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: [PATCH v2] ARM: __attribute__ ((reg_return))


On Mon, Sep 10, 2007 at 02:33:30AM -0700, Zack Weinberg wrote:
> Here is a revised version of my patch from last week [ 
> http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00163.html ] which adds an 
> ARM-specific type attribute that overrides the ABI and causes an aggregate to 
> be returned in registers.  Aggregates of up to 16 bytes can be returned this 
> way (in r0-r3).

FWIW, I also think it's bizarre to have this as a type attribute.  I
understand it made the implementation easier, but it's harder to
explain.  And we should be able to do this as automatically
as an optimization for local functions - messing around with the
attributes of the return type is a non-starter.


-- 
Daniel Jacobowitz
CodeSourcery


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