diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 21:32:24 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 21:32:24 +0000 |
commit | 9517cd99deda0613c31d37d1f59a8133c5d96a14 (patch) | |
tree | 246570b94da77f488004ee38599ba0366f110ed7 /gcc/config/cris | |
parent | 8bf078ef2b5edb030f5b1836f0059db2cbd277a6 (diff) | |
download | gcc-9517cd99deda0613c31d37d1f59a8133c5d96a14.tar.gz |
* config/cris/cris.c (cris_address_cost): Make static.
(TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
* config/cris/cris.h (ADDRESS_COST): Remove.
* config/cris/cris-protos.h: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/cris')
-rw-r--r-- | gcc/config/cris/cris-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/cris/cris.c | 9 | ||||
-rw-r--r-- | gcc/config/cris/cris.h | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/cris/cris-protos.h b/gcc/config/cris/cris-protos.h index fba20c44f44..43ac4442b2f 100644 --- a/gcc/config/cris/cris-protos.h +++ b/gcc/config/cris/cris-protos.h @@ -31,7 +31,6 @@ extern int cris_simple_epilogue PARAMS ((void)); extern const char *cris_op_str PARAMS ((rtx)); extern int cris_eligible_for_epilogue_delay PARAMS ((rtx)); extern void cris_notice_update_cc PARAMS ((rtx, rtx)); -extern int cris_address_cost PARAMS ((rtx)); extern void cris_print_operand PARAMS ((FILE *, rtx, int)); extern void cris_print_operand_address PARAMS ((FILE *, rtx)); extern int cris_side_effect_mode_ok PARAMS ((enum rtx_code, rtx *, int, int, diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 6842dfebda0..2d336916cce 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -106,6 +106,8 @@ static void cris_operand_lossage PARAMS ((const char *, rtx)); static void cris_asm_output_mi_thunk PARAMS ((FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, tree)); +static bool cris_rtx_costs PARAMS ((rtx, int, int, int *)); +static int cris_address_cost PARAMS ((rtx)); /* The function cris_target_asm_function_epilogue puts the last insn to output here. It always fits; there won't be a symbol operand. Used in @@ -164,6 +166,11 @@ int cris_cpu_version = CRIS_DEFAULT_CPU_VERSION; #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK #define TARGET_ASM_CAN_OUTPUT_MI_THUNK default_can_output_mi_thunk_no_vcall +#undef TARGET_RTX_COSTS +#define TARGET_RTX_COSTS cris_rtx_costs +#undef TARGET_ADDRESS_COST +#define TARGET_ADDRESS_COST cris_address_cost + struct gcc_target targetm = TARGET_INITIALIZER; /* Predicate functions. */ @@ -2193,7 +2200,7 @@ cris_rtx_costs (x, code, outer_code, total) /* The ADDRESS_COST worker. */ -int +static int cris_address_cost (x) rtx x; { diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index 38449c7bc81..78e62d11ade 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -1336,8 +1336,6 @@ struct cum_args {int regs;}; /* Node: Costs */ -#define ADDRESS_COST(X) cris_address_cost (X) - /* FIXME: Need to define REGISTER_MOVE_COST when more register classes are introduced. */ |