diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cfgcleanup.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6003a63..e7ada52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-16 Ian Lance Taylor <ian@wasabisystems.com> + + * cfgcleanup.c (label_is_jump_target_p): Correct use of table + returned by tablejump_p. + 2003-09-16 Joel Brobecker <brobecker@gnat.com> * dwarf2asm.c (dw2_asm_output_nstring): Add comment. diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index bfc59ba..32a9e65 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -661,7 +661,8 @@ label_is_jump_target_p (rtx label, rtx jump_insn) if (tablejump_p (jump_insn, NULL, &tmp)) { - rtvec vec = XVEC (tmp, GET_CODE (tmp) == ADDR_DIFF_VEC); + rtvec vec = XVEC (PATTERN (tmp), + GET_CODE (PATTERN (tmp)) == ADDR_DIFF_VEC); int i, veclen = GET_NUM_ELEM (vec); for (i = 0; i < veclen; ++i) |