+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.
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));
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
}
\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
are more than 32 modes now. Instead we use two tables: one indexed by