RFC: ARM: __attribute__ ((reg_return))

Ross Ridge rridge@csclub.uwaterloo.ca
Tue Sep 4 05:02:00 GMT 2007


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



More information about the Gcc-patches mailing list