aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJim Wilson <wilson@redhat.com>2002-10-01 13:48:20 +0000
committerJim Wilson <wilson@gcc.gnu.org>2002-10-01 06:48:20 -0700
commitbc9ec51b0bff99ff7651c0bb0ca00330c17cdfe3 (patch)
tree05e5a8fc0366a8ef517a71a91942deb9c2a2902e /gcc/config
parenta646f6ccc1113db8d1faeb1a902b44c1c7774e8c (diff)
downloadgcc-bc9ec51b0bff99ff7651c0bb0ca00330c17cdfe3.zip
gcc-bc9ec51b0bff99ff7651c0bb0ca00330c17cdfe3.tar.gz
gcc-bc9ec51b0bff99ff7651c0bb0ca00330c17cdfe3.tar.bz2
Don't let regrename clobber the link register.
* config/v850/v850.h (EPILOGUE_USES): Define. From-SVN: r57689
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/v850/v850.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index 478cd53..b04b59e 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. */