[PATCH v2] ARM: __attribute__ ((reg_return))

Mark Mitchell mark@codesourcery.com
Tue Sep 11 05:19:00 GMT 2007


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).

> Tested with arm-eabi cross compiler (simulator).  Can this squeeze into
> 4.3?

You've made the submission deadline. :-)

My feeling is that as (a) nobody has complained about your idea, and (b)
most of the patch is in the ARM backend, we should put it in if the ARM
maintainers are happy with it.  In particular, the reg_return attribute
is ARM-specific, so if we break something, it's an ARM something.

However, I just gave Jakub a hard time about adding language extensions,
so I want to avoid any appearance of conflict-of-interest with your
patch.  So, I would like at least one middle-end or GWP maintainer to
review your patch and affirm.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list