Commit ed5c4a10 by Nathan Froyd Committed by Nathan Froyd

cris-protos.h (cris_print_operand): Delete.

	* config/cris/cris-protos.h (cris_print_operand): Delete.
	(cris_print_operand_address): Delete.
	* config/cris/cris.h (PRINT_OPERAND): Delete.
	(PRINT_OPERAND_PUNCT_VALID_P): Delete.
	(PRINT_OPERAND_ADDRESS): Delete.
	* config/cris/cris.c (cris_print_operand_address): Make static.
	(cris_print_operand): Make static.
	(cris_print_operand_punct_valid_p): New function.
	(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
	(TARGET_PRINT_OPERAND_ADDRESS): Define.

From-SVN: r160857
parent 25d8a217
2010-06-16 Nathan Froyd <froydnj@codesourcery.com> 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
* config/cris/cris-protos.h (cris_print_operand): Delete.
(cris_print_operand_address): Delete.
* config/cris/cris.h (PRINT_OPERAND): Delete.
(PRINT_OPERAND_PUNCT_VALID_P): Delete.
(PRINT_OPERAND_ADDRESS): Delete.
* config/cris/cris.c (cris_print_operand_address): Make static.
(cris_print_operand): Make static.
(cris_print_operand_punct_valid_p): New function.
(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
(TARGET_PRINT_OPERAND_ADDRESS): Define.
2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
* config/arm/arm-protos.h (arm_print_operand): Delete. * config/arm/arm-protos.h (arm_print_operand): Delete.
(arm_print_operand_address): Delete. (arm_print_operand_address): Delete.
* config/arm/arm.h (PRINT_OPERAND): Delete. * config/arm/arm.h (PRINT_OPERAND): Delete.
......
...@@ -33,8 +33,6 @@ extern void cris_notice_update_cc (rtx, rtx); ...@@ -33,8 +33,6 @@ extern void cris_notice_update_cc (rtx, rtx);
extern bool cris_reload_address_legitimized (rtx, enum machine_mode, int, int, int); extern bool cris_reload_address_legitimized (rtx, enum machine_mode, int, int, int);
extern int cris_register_move_cost (enum machine_mode, enum reg_class, extern int cris_register_move_cost (enum machine_mode, enum reg_class,
enum reg_class); enum reg_class);
extern void cris_print_operand (FILE *, rtx, int);
extern void cris_print_operand_address (FILE *, rtx);
extern int cris_side_effect_mode_ok (enum rtx_code, rtx *, int, int, extern int cris_side_effect_mode_ok (enum rtx_code, rtx *, int, int,
int, int, int); int, int, int);
extern bool cris_cc0_user_requires_cmp (rtx); extern bool cris_cc0_user_requires_cmp (rtx);
......
...@@ -108,6 +108,12 @@ static void cris_operand_lossage (const char *, rtx); ...@@ -108,6 +108,12 @@ static void cris_operand_lossage (const char *, rtx);
static int cris_reg_saved_in_regsave_area (unsigned int, bool); static int cris_reg_saved_in_regsave_area (unsigned int, bool);
static void cris_print_operand (FILE *, rtx, int);
static void cris_print_operand_address (FILE *, rtx);
static bool cris_print_operand_punct_valid_p (unsigned char code);
static void cris_asm_output_mi_thunk static void cris_asm_output_mi_thunk
(FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, tree); (FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, tree);
...@@ -158,6 +164,13 @@ int cris_cpu_version = CRIS_DEFAULT_CPU_VERSION; ...@@ -158,6 +164,13 @@ int cris_cpu_version = CRIS_DEFAULT_CPU_VERSION;
#undef TARGET_ASM_UNALIGNED_DI_OP #undef TARGET_ASM_UNALIGNED_DI_OP
#define TARGET_ASM_UNALIGNED_DI_OP TARGET_ASM_ALIGNED_DI_OP #define TARGET_ASM_UNALIGNED_DI_OP TARGET_ASM_ALIGNED_DI_OP
#undef TARGET_PRINT_OPERAND
#define TARGET_PRINT_OPERAND cris_print_operand
#undef TARGET_PRINT_OPERAND_ADDRESS
#define TARGET_PRINT_OPERAND_ADDRESS cris_print_operand_address
#undef TARGET_PRINT_OPERAND_PUNCT_VALID_P
#define TARGET_PRINT_OPERAND_PUNCT_VALID_P cris_print_operand_punct_valid_p
#undef TARGET_ASM_OUTPUT_MI_THUNK #undef TARGET_ASM_OUTPUT_MI_THUNK
#define TARGET_ASM_OUTPUT_MI_THUNK cris_asm_output_mi_thunk #define TARGET_ASM_OUTPUT_MI_THUNK cris_asm_output_mi_thunk
#undef TARGET_ASM_CAN_OUTPUT_MI_THUNK #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK
...@@ -687,7 +700,7 @@ saved_regs_mentioned (rtx x) ...@@ -687,7 +700,7 @@ saved_regs_mentioned (rtx x)
/* The PRINT_OPERAND worker. */ /* The PRINT_OPERAND worker. */
void static void
cris_print_operand (FILE *file, rtx x, int code) cris_print_operand (FILE *file, rtx x, int code)
{ {
rtx operand = x; rtx operand = x;
...@@ -1114,9 +1127,15 @@ cris_print_operand (FILE *file, rtx x, int code) ...@@ -1114,9 +1127,15 @@ cris_print_operand (FILE *file, rtx x, int code)
} }
} }
static bool
cris_print_operand_punct_valid_p (unsigned char code)
{
return (code == '#' || code == '!' || code == ':');
}
/* The PRINT_OPERAND_ADDRESS worker. */ /* The PRINT_OPERAND_ADDRESS worker. */
void static void
cris_print_operand_address (FILE *file, rtx x) cris_print_operand_address (FILE *file, rtx x)
{ {
/* All these were inside MEM:s so output indirection characters. */ /* All these were inside MEM:s so output indirection characters. */
......
...@@ -1253,16 +1253,6 @@ enum cris_pic_symbol_type ...@@ -1253,16 +1253,6 @@ enum cris_pic_symbol_type
#define ADDITIONAL_REGISTER_NAMES \ #define ADDITIONAL_REGISTER_NAMES \
{{"r14", 14}, {"r15", 15}, {"pc", 15}} {{"r14", 14}, {"r15", 15}, {"pc", 15}}
#define PRINT_OPERAND(FILE, X, CODE) \
cris_print_operand (FILE, X, CODE)
/* For delay-slot handling. */
#define PRINT_OPERAND_PUNCT_VALID_P(CODE) \
((CODE) == '#' || (CODE) == '!' || (CODE) == ':')
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
cris_print_operand_address (FILE, ADDR)
/* Output an empty line to illustrate the presence of the delay slot. */ /* Output an empty line to illustrate the presence of the delay slot. */
#define DBR_OUTPUT_SEQEND(FILE) \ #define DBR_OUTPUT_SEQEND(FILE) \
fprintf (FILE, "\n") fprintf (FILE, "\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment