summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-11-14 19:56:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-11-14 19:56:42 +0000
commitfd6c72ffc7642e645152de707edcb51e0568b25f (patch)
treebc5a5d55582884fff59fa838d4445a7f64f9a616 /gnu
parentfe7c11deec23d951cd5cdfedcaf4d0079c9e03aa (diff)
Define EPILOGUE_USES(). And suddenly the life analysis pass doesn't decide
reloading the return address register from the stack in the epilogue isn't a useless operation anymore.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/config/m88k/m88k.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/m88k/m88k.h b/gnu/usr.bin/gcc/gcc/config/m88k/m88k.h
index 49cf723f9fa..1659305e381 100644
--- a/gnu/usr.bin/gcc/gcc/config/m88k/m88k.h
+++ b/gnu/usr.bin/gcc/gcc/config/m88k/m88k.h
@@ -1035,6 +1035,9 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
((TARGET_OMIT_LEAF_FRAME_POINTER && !leaf_function_p ()) \
|| (write_symbols != NO_DEBUG && !TARGET_OCS_FRAME_POSITION))
+/* Define registers used by the epilogue and return instruction. */
+#define EPILOGUE_USES(REGNO) (reload_completed && (REGNO) == 1)
+
/* Definitions for register eliminations.
We have two registers that can be eliminated on the m88k. First, the