aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-03 18:31:18 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-03 18:31:18 -0400
commit675f0e7cb2931a7f0d08f422b1a6564fb3b28b6b (patch)
tree3740ce122c0b6649036809b5b8ee840eb830f210 /gcc
parent15448afcc8d3fb975a4f1b2dec1e2a5f00279ab1 (diff)
downloadgcc-675f0e7cb2931a7f0d08f422b1a6564fb3b28b6b.zip
gcc-675f0e7cb2931a7f0d08f422b1a6564fb3b28b6b.tar.gz
gcc-675f0e7cb2931a7f0d08f422b1a6564fb3b28b6b.tar.bz2
Fix comments and formatting related to RETURN_ADDR_RTX.
From-SVN: r10429
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index 73a0f54..e324e9b 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -1088,13 +1088,21 @@ __enable_execute_stack (addr) \
if (mprotect (page, end - page, 7) < 0) \
perror ("mprotect of trampoline code"); \
}
-
-#define RETURN_ADDR_RTX(count, frame) \
-((count == 0 && alpha_sa_size () == 0 && 0 /* not right. */) \
+
+/* A C expression whose value is RTL representing the value of the return
+ address for the frame COUNT steps up from the current frame.
+ FRAMEADDR is the frame pointer of the COUNT frame, or the frame pointer of
+ the COUNT-1 frame if RETURN_ADDR_IN_PREVIOUS_FRAME} is defined.
+
+ This definition for Alpha is broken, but is put in at the request of
+ Mike Stump. */
+
+#define RETURN_ADDR_RTX(COUNT, FRAME) \
+((COUNT == 0 && alpha_sa_size () == 0 && 0 /* not right. */) \
? gen_rtx (REG, Pmode, 26) \
: gen_rtx (MEM, Pmode, \
- memory_address (Pmode, frame)))
- /* Addressing modes, and classification of registers for them. */
+ memory_address (Pmode, FRAME)))
+
/* Addressing modes, and classification of registers for them. */
/* #define HAVE_POST_INCREMENT */