diff options
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/m68k-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 14 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.h | 3 |
3 files changed, 9 insertions, 9 deletions
diff --git a/gcc/config/m68k/m68k-protos.h b/gcc/config/m68k/m68k-protos.h index 1065184..cdd6798 100644 --- a/gcc/config/m68k/m68k-protos.h +++ b/gcc/config/m68k/m68k-protos.h @@ -86,7 +86,6 @@ extern enum attr_op_mem m68k_sched_attr_op_mem (rtx_insn *); #endif /* RTX_CODE */ -extern bool m68k_regno_mode_ok (int, machine_mode); extern enum reg_class m68k_secondary_reload_class (enum reg_class, machine_mode, rtx); extern enum reg_class m68k_preferred_reload_class (rtx, enum reg_class); diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 08c7292..f28955b 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -187,6 +187,7 @@ static bool m68k_output_addr_const_extra (FILE *, rtx); static void m68k_init_sync_libfuncs (void) ATTRIBUTE_UNUSED; static enum flt_eval_method m68k_excess_precision (enum excess_precision_type); +static bool m68k_hard_regno_mode_ok (unsigned int, machine_mode); /* Initialize the GCC target structure. */ @@ -334,6 +335,9 @@ m68k_excess_precision (enum excess_precision_type); #undef TARGET_ATOMIC_TEST_AND_SET_TRUEVAL #define TARGET_ATOMIC_TEST_AND_SET_TRUEVAL 128 +#undef TARGET_HARD_REGNO_MODE_OK +#define TARGET_HARD_REGNO_MODE_OK m68k_hard_regno_mode_ok + static const struct attribute_spec m68k_attribute_table[] = { /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler, @@ -5170,12 +5174,12 @@ m68k_hard_regno_rename_ok (unsigned int old_reg ATTRIBUTE_UNUSED, return 1; } -/* Value is true if hard register REGNO can hold a value of machine-mode - MODE. On the 68000, we let the cpu registers can hold any mode, but - restrict the 68881 registers to floating-point modes. */ +/* Implement TARGET_HARD_REGNO_MODE_OK. On the 68000, we let the cpu + registers can hold any mode, but restrict the 68881 registers to + floating-point modes. */ -bool -m68k_regno_mode_ok (int regno, machine_mode mode) +static bool +m68k_hard_regno_mode_ok (unsigned int regno, machine_mode mode) { if (DATA_REGNO_P (regno)) { diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index ba7feb0..2c49dde 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -394,9 +394,6 @@ along with GCC; see the file COPYING3. If not see #define HARD_REGNO_RENAME_OK(OLD_REG, NEW_REG) \ m68k_hard_regno_rename_ok (OLD_REG, NEW_REG) -#define HARD_REGNO_MODE_OK(REGNO, MODE) \ - m68k_regno_mode_ok ((REGNO), (MODE)) - #define SECONDARY_RELOAD_CLASS(CLASS, MODE, X) \ m68k_secondary_reload_class (CLASS, MODE, X) |