diff options
author | cpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 22:46:56 +0000 |
---|---|---|
committer | cpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 22:46:56 +0000 |
commit | 7d27371b3d050f99438f717c59d427b269747b90 (patch) | |
tree | c133f98f916d66ff10247d043e4a2156b92224ae /gcc/jump.c | |
parent | 9d5cd281449d3d2eb7f02ec7cf29e71ab86263c4 (diff) | |
download | gcc-7d27371b3d050f99438f717c59d427b269747b90.tar.gz |
* jump.c (jump_optimize_1): Don't increment LABEL_NUSES
on deleted labels.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34094 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 60d7ee682a9..8f54e4dd4d9 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -245,7 +245,8 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, regions; they cannot usually be deleted. */ for (insn = exception_handler_labels; insn; insn = XEXP (insn, 1)) - LABEL_NUSES (XEXP (insn, 0))++; + 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 notes and recompute LABEL_NUSES. */ |