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: 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


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