aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1996-08-15 20:00:54 +0000
committerMike Stump <mrs@gcc.gnu.org>1996-08-15 20:00:54 +0000
commit6a5d752611d3c403b92591f4f2cc83c5ffd9ccd5 (patch)
tree939205c41e10200e12820f949c55a1da5045680f /gcc
parent75bb87ea21776c16068b681529080f97c759a267 (diff)
downloadgcc-6a5d752611d3c403b92591f4f2cc83c5ffd9ccd5.zip
gcc-6a5d752611d3c403b92591f4f2cc83c5ffd9ccd5.tar.gz
gcc-6a5d752611d3c403b92591f4f2cc83c5ffd9ccd5.tar.bz2
* arm.h (RETURN_ADDR_RTX): Define.
From-SVN: r12645
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/arm/arm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index c60f157..520e61b 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -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 \