From: Richard Kenner Date: Sat, 21 Oct 1995 22:29:14 +0000 (-0400) Subject: (reg_unused_after): Ifdef out code for handling labels. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8f6f18d84829f59cc51137e7e27cca9414dca9d;p=gcc.git (reg_unused_after): Ifdef out code for handling labels. From-SVN: r10499 --- 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;