This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: ARM: __attribute__ ((reg_return))
- From: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Sep 2007 01:02:26 -0400 (EDT)
- Subject: Re: RFC: ARM: __attribute__ ((reg_return))
Zack Weinberg writes:
>Most important is that, while TARGET_RETURN_IN_MEMORY is passed the
>FUNCTION_DECL, TARGET_FUNCTION_VALUE doesn't always get it. It is thus
>much simpler to make this a property of the type.
Shouldn't the attribute be a property of the function type? It doesn't
make sense to me for a calling convention to be an attribute of either the
type used as the return type or the function decl. TARGET_FUNCTION_VALUE
should be getting either the function decl or function type.
Ross Ridge