]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p.
authorIan Lance Taylor <ian@wasabisystems.com>
Tue, 16 Sep 2003 21:14:41 +0000 (21:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 16 Sep 2003 21:14:41 +0000 (21:14 +0000)
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
returned by tablejump_p.

From-SVN: r71443

gcc/ChangeLog
gcc/cfgcleanup.c

index 6003a6304922e4e37d3744e4d092f8cc786d7a4d..e7ada52c92dcde1a0d6eec247edd11477f1e6d54 100644 (file)
@@ -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.
index bfc59ba22a5afa4b807cf1424061f697077beff7..32a9e65322844de6e2a65fc724be79a0138be126 100644 (file)
@@ -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)