From 1dd61cb4d0d66e45855cea5cbc43435282b1f9b3 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 16 Sep 2003 21:14:41 +0000 Subject: cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p. * cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p. From-SVN: r71443 --- gcc/ChangeLog | 5 +++++ gcc/cfgcleanup.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * cfgcleanup.c (label_is_jump_target_p): Correct use of table + returned by tablejump_p. + 2003-09-16 Joel Brobecker * 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) -- cgit v1.1