diff options
author | Ian Lance Taylor <ian@wasabisystems.com> | 2003-09-16 21:14:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2003-09-16 21:14:41 +0000 |
commit | 1dd61cb4d0d66e45855cea5cbc43435282b1f9b3 (patch) | |
tree | 5dc826c7c51df9a3825809aeb6180f0a8a25062d /gcc | |
parent | 1e290ba1e60470f5d087eed303d25e77cc4fa6af (diff) | |
download | gcc-1dd61cb4d0d66e45855cea5cbc43435282b1f9b3.zip gcc-1dd61cb4d0d66e45855cea5cbc43435282b1f9b3.tar.gz gcc-1dd61cb4d0d66e45855cea5cbc43435282b1f9b3.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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) |