]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Preparatory work for PR target/21623:
authorJ"orn Rennecke <joern.rennecke@st.com>
Tue, 22 Nov 2005 22:57:35 +0000 (22:57 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 22 Nov 2005 22:57:35 +0000 (22:57 +0000)
* alpha.c (secondary_reload_class): Rename to:
(alpha_secondary_reload_class).
* alpha.h, alpha-protos.h: Likewise.
* mn10300.c (secondary_reload_class): Rename to:
(mn10300_secondary_reload_class).
* mn10300.h, mn10300-protos.h: Likewise.
* pa.c (secondary_reload_class): Rename to:
(pa_secondary_reload_class).
* pa.h, pa-protos.h: Likewise.
* rs6000.c (secondary_reload_class): Rename to:
rs6000_secondary_reload_class.
* rs6000.h, rs6000-protos.h: Likewise.

From-SVN: r107381

13 files changed:
gcc/ChangeLog
gcc/config/alpha/alpha-protos.h
gcc/config/alpha/alpha.c
gcc/config/alpha/alpha.h
gcc/config/mn10300/mn10300-protos.h
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.h
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.c
gcc/config/pa/pa.h
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h

index a4dbe8ff3b42d3737903a15caba90f84690c5fc4..d4789389e1ba16834d4c6ba2e01d3ca6aed5fa77 100644 (file)
@@ -1,3 +1,19 @@
+2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
+
+       Preparatory work for PR target/21623:
+       * alpha.c (secondary_reload_class): Rename to:
+       (alpha_secondary_reload_class).
+       * alpha.h, alpha-protos.h: Likewise.
+       * mn10300.c (secondary_reload_class): Rename to:
+       (mn10300_secondary_reload_class).
+       * mn10300.h, mn10300-protos.h: Likewise.
+       * pa.c (secondary_reload_class): Rename to:
+       (pa_secondary_reload_class).
+       * pa.h, pa-protos.h: Likewise.
+       * rs6000.c (secondary_reload_class): Rename to:
+       rs6000_secondary_reload_class.
+       * rs6000.h, rs6000-protos.h: Likewise.
+
 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR middle-end/22561
index 5dd57343c582740ea5c881ccf0d49603c62aad26..f6b237a1c0f1e86488feb5c788121503d5967c91 100644 (file)
@@ -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 *);
index 4afdb81f8a123663ff8a5b80ddc1802921b2369f..840a933da8a8dac617cf9093cdc22efdf55f722f 100644 (file)
@@ -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)
index 91689fbb5649d0bbf8fb1eb6acb9a5bf1d85a5fb..ed02c9f3e8ede630b404a736f5bdb5f374400898 100644 (file)
@@ -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.  */
index b094c853b4dc399b71491d29cacf7d7dff934540..1566ccc5b8a418630e3f824feb055cf56a808683 100644 (file)
@@ -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);
index cf0fc9fc146b7b5156144f80be8b10acd0d8071e..f63d77846db5b99d74e3f6ff479abe4b4cf6d226 100644 (file)
@@ -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
index b102c3983063e6951510eb4edd97e80fd16f3c84..84dd106f994569a06304b536a4ab4a3d9be1f379 100644 (file)
@@ -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.  */
index 7422cd9d37806c27ad5551480c5f3e1c23cac42a..d0daf72f6bac697707aace95d2dd587ca46a66b8 100644 (file)
@@ -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);
index f79d30a86455d4a1baf55941a1cbc88aa388583c..0eeb163ea58ccc223a7c9fba89865da047479ea5 100644 (file)
@@ -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.  */
index b83630fba32a8b01c488e238b049c5b22184d216..17870385cf5d09b48e6123df42ce3b10752e28e7 100644 (file)
@@ -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)
index 9911e503fa15a950176da0534ba4df0bd68392f4..fe04d81f43e2fa22a3316b038c2337982e46267d 100644 (file)
@@ -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);
index c3e50a314737c4ee3d95769685c7ac7747ca16fc..11ce9eea3c00b24439ff4abf5acd87dd6341d64c 100644 (file)
@@ -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;
 
index 15e8296582959bab309436e5ec38509ddf4b2c3b..8dc2d02301004e5ff09083467f40d3428d176c8c 100644 (file)
@@ -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.  */