aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-21 18:29:14 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-21 18:29:14 -0400
commitc8f6f18d84829f59cc51137e7e27cca9414dca9d (patch)
tree751ff75e51f0b909c8586cf300a9d24e3d9c440d
parent2fad984b37d66d7d85ffc8ef2d837991f59cc187 (diff)
downloadgcc-c8f6f18d84829f59cc51137e7e27cca9414dca9d.zip
gcc-c8f6f18d84829f59cc51137e7e27cca9414dca9d.tar.gz
gcc-c8f6f18d84829f59cc51137e7e27cca9414dca9d.tar.bz2
(reg_unused_after): Ifdef out code for handling labels.
From-SVN: r10499
-rw-r--r--gcc/config/sh/sh.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 597a7d3..5636d18 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -1892,14 +1892,21 @@ reg_unused_after (reg, insn)
{
code = GET_CODE (insn);
+#if 0
+ /* If this is a label that existed before reload, then the register
+ if dead here. However, if this is a label added by reorg, then
+ the register may still be live here. We can't tell the difference,
+ so we just ignore labels completely. */
if (code == CODE_LABEL)
return 1;
+ /* else */
+#endif
/* If this is a sequence, we must handle them all at once.
We could have for instance a call that sets the target register,
and a insn in a delay slot that uses the register. In this case,
we must return 0. */
- else if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
+ if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
{
int i;
int retval = 0;