reload.c (refers_to_mem_for_reload_p, [...]): Make them static.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 9 Nov 2004 17:29:03 +0000 (17:29 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 9 Nov 2004 17:29:03 +0000 (17:29 +0000)
* reload.c (refers_to_mem_for_reload_p,
refers_to_regno_for_reload_p): Make them static.
* reload.h: Remove the corresponding prototypes.

From-SVN: r90349

gcc/ChangeLog
gcc/reload.c
gcc/reload.h

index 5ce802b..e949d74 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * reload.c (refers_to_mem_for_reload_p,
+       refers_to_regno_for_reload_p): Make them static.
+       * reload.h: Remove the corresponding prototypes.
+
 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
             Eric Botcazou  <ebotcazou@libertysurf.fr>
 
index 66894dc..c56a499 100644 (file)
@@ -271,6 +271,9 @@ static rtx find_reloads_subreg_address (rtx, int, int, enum reload_type,
                                        int, rtx);
 static void copy_replacements_1 (rtx *, rtx *, int);
 static int find_inc_amount (rtx, rtx);
+static int refers_to_mem_for_reload_p (rtx);
+static int refers_to_regno_for_reload_p (unsigned int, unsigned int,
+                                        rtx, rtx *);
 \f
 #ifdef HAVE_SECONDARY_RELOADS
 
@@ -6171,7 +6174,7 @@ find_replacement (rtx *loc)
    This is similar to refers_to_regno_p in rtlanal.c except that we
    look at equivalences for pseudos that didn't get hard registers.  */
 
-int
+static int
 refers_to_regno_for_reload_p (unsigned int regno, unsigned int endregno,
                              rtx x, rtx *loc)
 {
@@ -6364,7 +6367,7 @@ reg_overlap_mentioned_for_reload_p (rtx x, rtx in)
 /* Return nonzero if anything in X contains a MEM.  Look also for pseudo
    registers.  */
 
-int
+static int
 refers_to_mem_for_reload_p (rtx x)
 {
   const char *fmt;
index 308797c..5cd0ad6 100644 (file)
@@ -308,19 +308,9 @@ extern void move_replacements (rtx *x, rtx *y);
    Otherwise, return *LOC.  */
 extern rtx find_replacement (rtx *);
 
-/* Return nonzero if register in range [REGNO, ENDREGNO)
-   appears either explicitly or implicitly in X
-   other than being stored into.  */
-extern int refers_to_regno_for_reload_p (unsigned int, unsigned int,
-                                        rtx, rtx *);
-
 /* Nonzero if modifying X will affect IN.  */
 extern int reg_overlap_mentioned_for_reload_p (rtx, rtx);
 
-/* Return nonzero if anything in X contains a MEM.  Look also for pseudo
-   registers.  */
-extern int refers_to_mem_for_reload_p (rtx);
-
 /* Check the insns before INSN to see if there is a suitable register
    containing the same value as GOAL.  */
 extern rtx find_equiv_reg (rtx, rtx, enum reg_class, int, short *,