]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* h8300.h (RETURN_ADDR_RTX): New.
authorKazu Hirata <kazu@hxi.com>
Wed, 29 Aug 2001 16:04:13 +0000 (16:04 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 29 Aug 2001 16:04:13 +0000 (16:04 +0000)
From-SVN: r45262

gcc/ChangeLog
gcc/config/h8300/h8300.h

index f245fa60c18ce3ebe2a94721c1fe7a0c90e03f54..796b2080944d453c03b34d7c460520f3b373e987 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-29  Kazu Hirata  <kazu@hxi.com>
+
+       * h8300.h (RETURN_ADDR_RTX): New.
+
 2001-08-29  Kazu Hirata  <kazu@hxi.com>
 
        * h8300.md (movsi_h8300hs): Optimize loading of several
index dc7a8ace768e46bf53c1442e76a0329bdc23cb54..ea1d3e8df0a8afd4937d41fcad3ceb743c38ceaa 100644 (file)
@@ -495,6 +495,15 @@ enum reg_class {
 
 #define STARTING_FRAME_OFFSET 0
 
+/* We do not know if the caller has a frame pointer, so we cannot go
+   beyond level 0.  */
+
+#define RETURN_ADDR_RTX(COUNT, FRAME)                                     \
+  ((COUNT) == 0                                                                   \
+   ? gen_rtx_MEM (Pmode,                                                  \
+                 plus_constant (arg_pointer_rtx, -GET_MODE_SIZE (Pmode))) \
+   : 0)
+
 /* If we generate an insn to push BYTES bytes,
    this says how many the stack pointer really advances by.