(INCOMING_RETURN_ADDR_RTX,INCOMING_FRAME_SP_OFFSET): Move definitions
authorDoug Evans <dje@gnu.org>
Fri, 10 Oct 1997 22:33:24 +0000 (22:33 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 10 Oct 1997 22:33:24 +0000 (22:33 +0000)
to a more sane place.

From-SVN: r15891

gcc/config/sparc/sparc.h

index b4b12b1dc1679285f837484cc7b1979eb3235877..46e83b1c0fd8de14073ea4739b5b2db592b9434b 100644 (file)
@@ -2213,6 +2213,18 @@ extern struct rtx_def *sparc_builtin_saveregs ();
    : gen_rtx (MEM, Pmode,                      \
              memory_address (Pmode, plus_constant (frame, 15 * UNITS_PER_WORD))))
 
+/* Before the prologue, the return address is %o7 + 8.  OK, sometimes it's
+   +12, but always using +8 is close enough for frame unwind purposes.
+   Actually, just using %o7 is close enough for unwinding, but %o7+8
+   is something you can return to.  */
+#define INCOMING_RETURN_ADDR_RTX \
+  gen_rtx (PLUS, word_mode, gen_rtx (REG, word_mode, 15), GEN_INT (8))
+
+/* The offset from the incoming value of %sp to the top of the stack frame
+   for the current function.  On sparc64, we have to account for the stack
+   bias if present.  */
+#define INCOMING_FRAME_SP_OFFSET SPARC_STACK_BIAS
+
 #define DOESNT_NEED_UNWINDER (! TARGET_FLAT)
 \f
 /* Addressing modes, and classification of registers for them.  */
@@ -3187,16 +3199,3 @@ extern char *output_return ();
 /* Defined in flags.h, but insn-emit.c does not include flags.h.  */
 
 extern int flag_pic;
-
-/* Before the prologue, the return address is %o7 + 8.  OK, sometimes it's
-   +12, but always using +8 is close enough for frame unwind purposes.
-   Actually, just using %o7 is close enough for unwinding, but %o7+8
-   is something you can return to.  */
-#define INCOMING_RETURN_ADDR_RTX \
-  gen_rtx (PLUS, word_mode, gen_rtx (REG, word_mode, 15), GEN_INT (8))
-
-/* The offset from the incoming value of %sp to the top of the stack frame
-   for the current function.  On sparc64, we have to account for the stack
-   bias if present.  */
-
-#define INCOMING_FRAME_SP_OFFSET SPARC_STACK_BIAS