This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
LABEL_NUSES on deleted labels
- To: gcc-patches at gcc dot gnu dot org
- Subject: LABEL_NUSES on deleted labels
- From: Clinton Popetz <cpopetz at cygnus dot com>
- Date: Mon, 22 May 2000 11:37:01 -0500
The gc now knows that NOTE_INSN_DELETED_LABEL should have a string in the third
part, so we have to make sure we don't use that space to count uses.
This showed up as a crash building libio for sh-elf. Ok?
-Clint
Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
* jump.c (jump_optimize_1): Don't increment LABEL_NUSES
on deleted exception labels.
Index: jump.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/jump.c,v
retrieving revision 1.127
diff -c -2 -p -r1.127 jump.c
*** jump.c 2000/05/19 19:53:16 1.127
--- jump.c 2000/05/22 16:27:04
*************** jump_optimize_1 (f, cross_jump, noop_mov
*** 246,250 ****
for (insn = exception_handler_labels; insn; insn = XEXP (insn, 1))
! LABEL_NUSES (XEXP (insn, 0))++;
/* Quit now if we just wanted to rebuild the JUMP_LABEL and REG_LABEL
--- 246,251 ----
for (insn = exception_handler_labels; insn; insn = XEXP (insn, 1))
! if (GET_CODE (XEXP (insn, 0)) == CODE_LABEL)
! LABEL_NUSES (XEXP (insn, 0))++;
/* Quit now if we just wanted to rebuild the JUMP_LABEL and REG_LABEL