[MN10300] Remove FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE and LIBCALL_VALUE macros.

Jeff Law law@redhat.com
Mon Oct 26 15:44:00 GMT 2009


On 10/25/09 05:59, Anatoly Sokolov wrote:
> Hello.
>
>    This patch removes obsolete FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE and
> LIBCALL_VALUE macros from mn10300 back end in the GCC and introduces
> equivalent TARGET_FUNCTION_VALUE,  TARGET_FUNCTION_OUTGOING_VALUE and
> TARGET_LIBCALL_VALUE target hooks. Also this patch convert
> FUNCTION_VALUE_REGNO_P macro to mn10300_function_value_regno_p function, this
> should simplify hookize FUNCTION_VALUE_REGNO_P macro in the future.
>
>    Regression tested on mn10300-unknown-elf.
>
>          * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
>          new 'outgoing' argument.
>          (mn10300_libcall_value, mn10300_function_value_regno_p): New
>          functions.
>          (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
>          * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
>          LIBCALL_VALUE): Remove.
>          (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
>          * config/mn10300/mn10300-protos.h (mh10300_function_value_regno_p):
>          Declare.
>    
OK.
Jeff



More information about the Gcc-patches mailing list