Don't let regrename clobber the link register.
authorJim Wilson <wilson@redhat.com>
Tue, 1 Oct 2002 13:48:20 +0000 (13:48 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 1 Oct 2002 13:48:20 +0000 (06:48 -0700)
* config/v850/v850.h (EPILOGUE_USES): Define.

From-SVN: r57689

gcc/ChangeLog
gcc/config/v850/v850.h

index 64fa602f84382a4a76cfc8a18010c67754c1f141..f4ad8225f95fb0dc9a91b4b0ca093488af692ec0 100644 (file)
@@ -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 
index 478cd53aefe0011ea0d1a4419eba5c8f8d09094e..b04b59ef69014c5f2be4b45b2bbe35d09284ef15 100644 (file)
@@ -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.  */