From b209b3c59fadb393642fb1950935988d6ed8c75b Mon Sep 17 00:00:00 2001 From: James Van Artsdalen Date: Sun, 9 Jan 1994 10:35:48 +0000 Subject: (follow_jumps): Don't follow tablejumps. From-SVN: r6361 --- gcc/jump.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc') diff --git a/gcc/jump.c b/gcc/jump.c index 9e0230f..cca2c0a 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -2925,6 +2925,12 @@ follow_jumps (label) /* If we have found a cycle, make the insn jump to itself. */ if (JUMP_LABEL (insn) == label) return label; + + tem = next_active_insn (JUMP_LABEL (insn)); + if (tem && (GET_CODE (PATTERN (tem)) == ADDR_VEC + || GET_CODE (PATTERN (tem)) == ADDR_DIFF_VEC)) + break; + value = JUMP_LABEL (insn); } if (depth == 10) -- cgit v1.1