This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]