* arm.h (RETURN_ADDR_RTX): Define.
authorMike Stump <mrs@gcc.gnu.org>
Thu, 15 Aug 1996 20:00:54 +0000 (20:00 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 15 Aug 1996 20:00:54 +0000 (20:00 +0000)
From-SVN: r12645

gcc/config/arm/arm.h

index c60f157902732cc26aa9b48de813048e955396db..520e61bdd77520ca5364d560bd439433d9a551d6 100644 (file)
@@ -1721,6 +1721,14 @@ do {                                                                     \
   ASM_OUTPUT_INT (FILE, XEXP (DECL_RTL (FUNCTION), 0));                        \
 } while (0)
 
+/* A C expression whose value is RTL representing the value of the return
+   address for the frame COUNT steps up from the current frame.  */
+
+#define RETURN_ADDR_RTX(COUNT, FRAME)  \
+  ((COUNT == 0)                                \
+   ? gen_rtx (MEM, Pmode, plus_constant (FRAME, -4)) \
+   : (rtx) 0)
+
 /* Used to mask out junk bits from the return address, such as
    processor state, interrupt status, condition codes and the like.  */
 #define MASK_RETURN_ADDR \