diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha-protos.h | 5 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 2 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 4 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300-protos.h | 4 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.c | 3 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.h | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa-protos.h | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000-protos.h | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 2 |
12 files changed, 23 insertions, 21 deletions
diff --git a/gcc/config/alpha/alpha-protos.h b/gcc/config/alpha/alpha-protos.h index 5dd5734..f6b237a 100644 --- a/gcc/config/alpha/alpha-protos.h +++ b/gcc/config/alpha/alpha-protos.h @@ -53,8 +53,9 @@ extern rtx split_small_symbolic_operand (rtx); extern void get_aligned_mem (rtx, rtx *, rtx *); extern rtx get_unaligned_address (rtx, int); extern enum reg_class alpha_preferred_reload_class (rtx, enum reg_class); -extern enum reg_class secondary_reload_class (enum reg_class, - enum machine_mode, rtx, int); +extern enum reg_class alpha_secondary_reload_class (enum reg_class, + enum machine_mode, rtx, + int); extern void alpha_set_memflags (rtx, rtx); extern bool alpha_split_const_mov (enum machine_mode, rtx *); diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 4afdb81..840a933d 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -1597,7 +1597,7 @@ alpha_preferred_reload_class(rtx x, enum reg_class class) from register elimination into a DImode fp register. */ enum reg_class -secondary_reload_class (enum reg_class class, enum machine_mode mode, +alpha_secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx x, int in) { if ((mode == QImode || mode == HImode) && ! TARGET_BWX) diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 91689fb..ed02c9f 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -672,10 +672,10 @@ enum reg_class { FP register. */ #define SECONDARY_INPUT_RELOAD_CLASS(CLASS,MODE,IN) \ - secondary_reload_class((CLASS), (MODE), (IN), 1) + alpha_secondary_reload_class((CLASS), (MODE), (IN), 1) #define SECONDARY_OUTPUT_RELOAD_CLASS(CLASS,MODE,OUT) \ - secondary_reload_class((CLASS), (MODE), (OUT), 0) + alpha_secondary_reload_class((CLASS), (MODE), (OUT), 0) /* If we are copying between general and FP registers, we need a memory location unless the FIX extension is available. */ diff --git a/gcc/config/mn10300/mn10300-protos.h b/gcc/config/mn10300/mn10300-protos.h index b094c85..1566ccc 100644 --- a/gcc/config/mn10300/mn10300-protos.h +++ b/gcc/config/mn10300/mn10300-protos.h @@ -36,8 +36,8 @@ extern void mn10300_print_reg_list (FILE *, int); extern int mn10300_get_live_callee_saved_regs (void); extern void mn10300_gen_multiple_store (int); extern void notice_update_cc (rtx, rtx); -extern enum reg_class secondary_reload_class (enum reg_class, - enum machine_mode, rtx); +extern enum reg_class mn10300_secondary_reload_class (enum reg_class, + enum machine_mode, rtx); extern const char *output_tst (rtx, rtx); extern int store_multiple_operation (rtx, enum machine_mode); extern int symbolic_operand (rtx, enum machine_mode); diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index cf0fc9f..f63d778 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -1337,7 +1337,8 @@ store_multiple_operation (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) We might be able to simplify this. */ enum reg_class -secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx in) +mn10300_secondary_reload_class (enum reg_class class, enum machine_mode mode, + rtx in) { /* Memory loads less than a full word wide can't have an address or stack pointer destination. They must use diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index b102c39..84dd106 100644 --- a/gcc/config/mn10300/mn10300.h +++ b/gcc/config/mn10300/mn10300.h @@ -425,7 +425,7 @@ enum reg_class { (!TARGET_AM33 && (MODE == QImode || MODE == HImode) ? DATA_REGS : CLASS) #define SECONDARY_RELOAD_CLASS(CLASS,MODE,IN) \ - secondary_reload_class(CLASS,MODE,IN) + mn10300_secondary_reload_class(CLASS,MODE,IN) /* Return the maximum number of consecutive registers needed to represent mode MODE in a register of class CLASS. */ diff --git a/gcc/config/pa/pa-protos.h b/gcc/config/pa/pa-protos.h index 7422cd9..d0daf72 100644 --- a/gcc/config/pa/pa-protos.h +++ b/gcc/config/pa/pa-protos.h @@ -106,8 +106,8 @@ extern int emit_move_sequence (rtx *, enum machine_mode, rtx); extern int emit_hpdiv_const (rtx *, int); extern int is_function_label_plus_const (rtx); extern int jump_in_call_delay (rtx); -extern enum reg_class secondary_reload_class (enum reg_class, - enum machine_mode, rtx); +extern enum reg_class pa_secondary_reload_class (enum reg_class, + enum machine_mode, rtx); extern int hppa_fpstore_bypass_p (rtx, rtx); extern int attr_length_millicode_call (rtx); extern int attr_length_call (rtx, int); diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index f79d30a..0eeb163 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -5576,7 +5576,7 @@ output_arg_descriptor (rtx call_insn) It might be worthwhile to try and make this a leaf function too. */ enum reg_class -secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx in) +pa_secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx in) { int regno, is_symbolic; @@ -5589,7 +5589,7 @@ secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx in) return R1_REGS; /* Profiling showed the PA port spends about 1.3% of its compilation - time in true_regnum from calls inside secondary_reload_class. */ + time in true_regnum from calls inside pa_secondary_reload_class. */ if (GET_CODE (in) == REG) { @@ -5628,7 +5628,7 @@ secondary_reload_class (enum reg_class class, enum machine_mode mode, rtx in) in = XEXP (in, 0); /* Profiling has showed GCC spends about 2.6% of its compilation - time in symbolic_operand from calls inside secondary_reload_class. + time in symbolic_operand from calls inside pa_secondary_reload_class. We use an inline copy and only compute its return value once to avoid useless work. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index b83630f..1787038 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -535,7 +535,7 @@ extern struct rtx_def *hppa_pic_save_rtx (void); #define SECONDARY_RELOAD_CLASS(CLASS,MODE,IN) \ ((CLASS == BASE_REG_CLASS && GET_CODE (IN) == REG \ && REGNO (IN) < FIRST_PSEUDO_REGISTER) \ - ? NO_REGS : secondary_reload_class (CLASS, MODE, IN)) + ? NO_REGS : pa_secondary_reload_class (CLASS, MODE, IN)) #define MAYBE_FP_REG_CLASS_P(CLASS) \ reg_classes_intersect_p ((CLASS), FP_REGS) diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h index 9911e50..fe04d81 100644 --- a/gcc/config/rs6000/rs6000-protos.h +++ b/gcc/config/rs6000/rs6000-protos.h @@ -64,8 +64,8 @@ extern int insvdi_rshift_rlwimi_p (rtx, rtx, rtx); extern int registers_ok_for_quad_peep (rtx, rtx); extern int mems_ok_for_quad_peep (rtx, rtx); extern bool gpr_or_gpr_p (rtx, rtx); -extern enum reg_class secondary_reload_class (enum reg_class, - enum machine_mode, rtx); +extern enum reg_class rs6000_secondary_reload_class (enum reg_class, + enum machine_mode, rtx); extern int ccr_bit (rtx, int); extern int extract_MB (rtx); extern int extract_ME (rtx); diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index c3e50a3..11ce9ee 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -9761,9 +9761,9 @@ mems_ok_for_quad_peep (rtx mem1, rtx mem2) NO_REGS is returned. */ enum reg_class -secondary_reload_class (enum reg_class class, - enum machine_mode mode ATTRIBUTE_UNUSED, - rtx in) +rs6000_secondary_reload_class (enum reg_class class, + enum machine_mode mode ATTRIBUTE_UNUSED, + rtx in) { int regno; diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 15e8296..8dc2d02 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -1187,7 +1187,7 @@ enum reg_class NO_REGS is returned. */ #define SECONDARY_RELOAD_CLASS(CLASS,MODE,IN) \ - secondary_reload_class (CLASS, MODE, IN) + rs6000_secondary_reload_class (CLASS, MODE, IN) /* If we are copying between FP or AltiVec registers and anything else, we need a memory location. */ |