diff options
Diffstat (limited to 'gcc/config/mep/mep.c')
-rw-r--r-- | gcc/config/mep/mep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index b8ef440..60cf4eb 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -1195,9 +1195,10 @@ mep_multi_slot (rtx x) return get_attr_slot (x) == SLOT_MULTI; } +/* Implement TARGET_LEGITIMATE_CONSTANT_P. */ -bool -mep_legitimate_constant_p (rtx x) +static bool +mep_legitimate_constant_p (enum machine_mode mode ATTRIBUTE_UNUSED, rtx x) { /* We can't convert symbol values to gp- or tp-rel values after reload, as reload might have used $gp or $tp for other @@ -1300,7 +1301,7 @@ mep_legitimate_address (enum machine_mode mode, rtx x, int strict) if ((mode == SImode || mode == SFmode) && CONSTANT_P (x) - && LEGITIMATE_CONSTANT_P (x) + && mep_legitimate_constant_p (mode, x) && the_tag != 't' && the_tag != 'b') { if (GET_CODE (x) != CONST_INT @@ -7477,6 +7478,8 @@ mep_asm_init_sections (void) #define TARGET_CONDITIONAL_REGISTER_USAGE mep_conditional_register_usage #undef TARGET_TRAMPOLINE_INIT #define TARGET_TRAMPOLINE_INIT mep_trampoline_init +#undef TARGET_LEGITIMATE_CONSTANT_P +#define TARGET_LEGITIMATE_CONSTANT_P mep_legitimate_constant_p struct gcc_target targetm = TARGET_INITIALIZER; |