]> gcc.gnu.org Git - gcc.git/commitdiff
arc.c (arc_initialize_pic): Remove.
authorDavid S. Miller <davem@pierdol.cobaltmicro.com>
Sun, 23 Aug 1998 10:43:54 +0000 (10:43 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Sun, 23 Aug 1998 10:43:54 +0000 (03:43 -0700)
* config/arc/arc.c (arc_initialize_pic): Remove.
* config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
nothing on any platform and is invoked by no-one, it does not even
appear in the documentation.
* config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
* config/sparc/sparc.c (initialize_pic): Likewise.
(find_addr_reg): Remove this as well, no longer referenced after
my rewrite.

From-SVN: r21914

gcc/ChangeLog
gcc/config/arc/arc.c
gcc/config/arc/arc.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h

index 1f31bb7542057bcdd056394ca1e9d7779a579bad..a87e9d41127a2924d24cf23ed461d1e48fcef439 100644 (file)
@@ -1,3 +1,14 @@
+Sun Aug 23 09:39:09 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>
+
+       * config/arc/arc.c (arc_initialize_pic): Remove.
+       * config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
+       nothing on any platform and is invoked by no-one, it does not even
+       appear in the documentation.
+       * config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
+       * config/sparc/sparc.c (initialize_pic): Likewise.
+       (find_addr_reg): Remove this as well, no longer referenced after
+       my rewrite.
+
 Sun Aug 23 00:17:14 1998  Jeffrey A Law  (law@cygnus.com)
 
        * recog.c (validate_replace_rtx_group): New function.
index e2f46e7c965a323e9777f925afb4dad84c2fa77a..64aec4425086b033454bea2c1277146ad34dd4e3 100644 (file)
@@ -1366,15 +1366,6 @@ arc_eligible_for_epilogue_delay (trial, slot)
 \f
 /* PIC */
 
-/* Set up PIC-specific rtl.  This should not cause any insns
-   to be emitted.  */
-
-void
-arc_initialize_pic ()
-{
-  /* nothing to do */
-}
-
 /* Emit special PIC prologues and epilogues.  */
 
 void
index 61ca39f53111e93c42506eade8740172aa28c576..ab1dc15311662bde6667897f2de79a726c2193d6 100644 (file)
@@ -1242,7 +1242,6 @@ do {                                                      \
    included in functions which used inline functions and were compiled to
    assembly language.)  */
 
-#define INITIALIZE_PIC arc_initialize_pic ()
 #define FINALIZE_PIC arc_finalize_pic ()
 
 /* A C expression that is nonzero if X is a legitimate immediate
index 31c7a495cbcbb12d85d65f49df5c406d82a3b396..d5eae83b06d017c2325290c7a3b17c56cf5933e0 100644 (file)
@@ -102,7 +102,6 @@ static char *frame_base_name;
 static int frame_base_offset;
 
 static rtx pic_setup_code      PROTO((void));
-static rtx find_addr_reg       PROTO((rtx));
 static void sparc_init_modes   PROTO((void));
 static int save_regs           PROTO((FILE *, int, int, char *,
                                       int, int, int));
@@ -2434,14 +2433,6 @@ legitimize_pic_address (orig, mode, reg)
   return orig;
 }
 
-/* Set up PIC-specific rtl.  This should not cause any insns
-   to be emitted.  */
-
-void
-initialize_pic ()
-{
-}
-
 /* Return the RTX for insns to set the PIC register.  */
 
 static rtx
@@ -2584,36 +2575,6 @@ mem_min_alignment (mem, desired)
   return 0;
 }
 
-\f
-/* Return a REG that occurs in ADDR with coefficient 1.
-   ADDR can be effectively incremented by incrementing REG.  */
-
-static rtx
-find_addr_reg (addr)
-     rtx addr;
-{
-  while (GET_CODE (addr) == PLUS)
-    {
-      /* We absolutely can not fudge the frame pointer here, because the
-        frame pointer must always be 8 byte aligned.  It also confuses
-        debuggers.  */
-      if (GET_CODE (XEXP (addr, 0)) == REG
-         && REGNO (XEXP (addr, 0)) != FRAME_POINTER_REGNUM)
-       addr = XEXP (addr, 0);
-      else if (GET_CODE (XEXP (addr, 1)) == REG
-              && REGNO (XEXP (addr, 1)) != FRAME_POINTER_REGNUM)
-       addr = XEXP (addr, 1);
-      else if (CONSTANT_P (XEXP (addr, 0)))
-       addr = XEXP (addr, 1);
-      else if (CONSTANT_P (XEXP (addr, 1)))
-       addr = XEXP (addr, 0);
-      else
-       abort ();
-    }
-  if (GET_CODE (addr) == REG)
-    return addr;
-  abort ();
-}
 \f
 /* Vectors to keep interesting information about registers where it can easily
    be got.  We use to use the actual mode value as the bit number, but there
index 81c72fd4e8301a5c3e509b847b91a09b546344c1..78882dbe6e31556aa58c3c1f13c70b762afaa800 100644 (file)
@@ -1082,7 +1082,6 @@ extern int sparc_mode_class[];
 
 #define PIC_OFFSET_TABLE_REGNUM 23
 
-#define INITIALIZE_PIC initialize_pic ()
 #define FINALIZE_PIC finalize_pic ()
 
 /* Pick a default value we can notice from override_options:
This page took 0.091992 seconds and 5 git commands to generate.