This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch applied to cfgcleanup.c
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 16 Sep 2003 14:15:59 -0700
- Subject: Patch applied to cfgcleanup.c
With Richard Henderson's approval, I applied this patch to
cfgcleanup.c. This fixes PR gcc/12279, q.v.
Ian
2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
returned by tablejump_p.
Index: cfgcleanup.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgcleanup.c,v
retrieving revision 1.94
diff -u -p -r1.94 cfgcleanup.c
--- cfgcleanup.c 7 Sep 2003 16:23:40 -0000 1.94
+++ cfgcleanup.c 16 Sep 2003 04:12:10 -0000
@@ -661,7 +661,8 @@ label_is_jump_target_p (rtx label, rtx j
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)