This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [m32c] hookize PRINT_OPERAND & co
- From: Richard Henderson <rth at redhat dot com>
- To: "Naveen H. S" <Naveen dot S at kpitcummins dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 31 Aug 2010 08:32:20 -0700
- Subject: Re: [m32c] hookize PRINT_OPERAND & co
- References: <371569CBCFB2E745B891DBB88B2DFDDD19E08F32E3@KCINPUNHJCMS01.kpit.com>
On 08/31/2010 12:04 AM, Naveen H. S wrote:
> * config/m32c/m32c.c (m32c_function_value_regno_p): Declare.
> (m32c_print_operand_address): Likewise.
> (m32c_print_operand): Likewise.
> (m32c_print_operand_punct_valid_p): Likewise.
> (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_PRINT_OPERAND_PUNCT_VALID_P,
> TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
> * config/m32c/m32c.h (FUNCTION_VALUE_REGNO_P, PRINT_OPERAND_ADDRESS,
> PRINT_OPERAND, PRINT_OPERAND_PUNCT_VALID_P): Delete.
> * config/m32c/m32c-protos.h (m32c_print_operand): Delete.
> (m32c_print_operand_address): Delete.
> (m32c_print_operand_punct_valid_p): Delete.
> (m32c_function_value_regno_p): Delete.
Nearly ok.
> +static bool m32c_function_value_regno_p (const unsigned int);
...
> +/* How Scalar Function Values Are Returned */
> +
> +#undef TARGET_FUNCTION_VALUE_REGNO_P
> +#define TARGET_FUNCTION_VALUE_REGNO_P m32c_function_value_regno_p
>
> bool
> m32c_function_value_regno_p (const unsigned int regno)
static goes here too.
> +#undef TARGET_PRINT_OPERAND
> +#define TARGET_PRINT_OPERAND m32c_print_operand
> +
> void
> m32c_print_operand (FILE * file, rtx x, int code)
Likewise.
> +#undef TARGET_PRINT_OPERAND_ADDRESS
> +#define TARGET_PRINT_OPERAND_ADDRESS m32c_print_operand_address
> +
> void
> m32c_print_operand_address (FILE * stream, rtx address)
Likewise.
Ok with those changes.
r~