summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-01 13:48:20 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-01 13:48:20 +0000
commite20643facf8969e6d8cd480a80d534fe5877007b (patch)
tree05e5a8fc0366a8ef517a71a91942deb9c2a2902e
parent8ca56a3b4098543949892fa278f23a83b87d5e5b (diff)
downloadppe42-gcc-e20643facf8969e6d8cd480a80d534fe5877007b.tar.gz
ppe42-gcc-e20643facf8969e6d8cd480a80d534fe5877007b.zip
Don't let regrename clobber the link register.
* config/v850/v850.h (EPILOGUE_USES): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57689 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/v850/v850.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 64fa602f843..f4ad8225f95 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-01 Jim Wilson <wilson@redhat.com>
+
+ * config/v850/v850.h (EPILOGUE_USES): Define.
+
2002-09-30 Andrew Haley <aph@redhat.com>
* flow.c (insn_dead_p): When using non-call-exceptions, don't
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index 478cd53aefe..b04b59ef690 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -812,6 +812,12 @@ struct cum_arg { int nbytes; int anonymous_args; };
#define EXIT_IGNORE_STACK 1
+/* Define this macro as a C expression that is nonzero for registers
+ used by the epilogue or the `return' pattern. */
+
+#define EPILOGUE_USES(REGNO) \
+ (reload_completed && (REGNO) == LINK_POINTER_REGNUM)
+
/* Output assembler code to FILE to increment profiler label # LABELNO
for profiling a function entry. */
OpenPOWER on IntegriCloud