From c8f6f18d84829f59cc51137e7e27cca9414dca9d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 21 Oct 1995 18:29:14 -0400 Subject: [PATCH] (reg_unused_after): Ifdef out code for handling labels. From-SVN: r10499 --- gcc/config/sh/sh.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 597a7d3c164..5636d1805c4 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; -- 2.30.2