diff options
Diffstat (limited to 'gcc/config/pdp11')
-rw-r--r-- | gcc/config/pdp11/pdp11-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/pdp11/pdp11.c | 10 | ||||
-rw-r--r-- | gcc/config/pdp11/pdp11.h | 4 |
3 files changed, 6 insertions, 10 deletions
diff --git a/gcc/config/pdp11/pdp11-protos.h b/gcc/config/pdp11/pdp11-protos.h index b89e1f9..2fe1386 100644 --- a/gcc/config/pdp11/pdp11-protos.h +++ b/gcc/config/pdp11/pdp11-protos.h @@ -31,8 +31,6 @@ extern const char *output_jump (enum rtx_code, int, int); extern void print_operand_address (FILE *, rtx); extern bool pdp11_cannot_change_mode_class (machine_mode, machine_mode, enum reg_class); -extern bool pdp11_secondary_memory_needed (reg_class_t, reg_class_t, - machine_mode); typedef enum { no_action, dec_before, inc_after } pdp11_action; typedef enum { little, either, big } pdp11_partorder; extern bool pdp11_expand_operands (rtx *, rtx [][2], int, diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index fd50e6a..5364b47 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -243,6 +243,9 @@ static bool pdp11_scalar_mode_supported_p (scalar_mode); #undef TARGET_MODES_TIEABLE_P #define TARGET_MODES_TIEABLE_P pdp11_modes_tieable_p + +#undef TARGET_SECONDARY_MEMORY_NEEDED +#define TARGET_SECONDARY_MEMORY_NEEDED pdp11_secondary_memory_needed /* A helper function to determine if REGNO should be saved in the current function's stack frame. */ @@ -1453,14 +1456,13 @@ pdp11_secondary_reload (bool in_p ATTRIBUTE_UNUSED, return LOAD_FPU_REGS; } -/* Target routine to check if register to register move requires memory. +/* Implement TARGET_SECONDARY_MEMORY_NEEDED. The answer is yes if we're going between general register and FPU registers. The mode doesn't matter in making this check. */ -bool -pdp11_secondary_memory_needed (reg_class_t c1, reg_class_t c2, - machine_mode mode ATTRIBUTE_UNUSED) +static bool +pdp11_secondary_memory_needed (machine_mode, reg_class_t c1, reg_class_t c2) { int fromfloat = (c1 == LOAD_FPU_REGS || c1 == NO_LOAD_FPU_REGS || c1 == FPU_REGS); diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h index cd1d135..d220697 100644 --- a/gcc/config/pdp11/pdp11.h +++ b/gcc/config/pdp11/pdp11.h @@ -236,10 +236,6 @@ enum reg_class { NO_REGS, MUL_REGS, GENERAL_REGS, LOAD_FPU_REGS, NO_LOAD_FPU_REG #define INDEX_REG_CLASS GENERAL_REGS #define BASE_REG_CLASS GENERAL_REGS -/* Hook for testing if memory is needed for moving between registers. */ -#define SECONDARY_MEMORY_NEEDED(class1, class2, m) \ - pdp11_secondary_memory_needed (class1, class2, m) - /* Return the maximum number of consecutive registers needed to represent mode MODE in a register of class CLASS. */ #define CLASS_MAX_NREGS(CLASS, MODE) \ |