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: [m32c] hookize PRINT_OPERAND & co


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~


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