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 COMMITTED: Fix enum comparison


In testing the current version of my enum comparison patch, I ran across
an error in which a GIMPLE code is compared to a tree code.  Patch
bootstrapped and tested on i686-pc-linux-gnu.  Committed as obvious.

Ian


2009-03-31  Ian Lance Taylor  <iant@google.com>

	* tree-eh.c (tree_remove_unreachable_handlers): Compare
	gimple_code with GIMPLE_RESX, not RESX.


Index: tree-eh.c
===================================================================
--- tree-eh.c	(revision 145364)
+++ tree-eh.c	(working copy)
@@ -2698,7 +2698,7 @@ tree_remove_unreachable_handlers (void)
 	    int region = VEC_index (int, label_to_region, uid);
 	    SET_BIT (reachable, region);
 	  }
-	if (gimple_code (stmt) == RESX)
+	if (gimple_code (stmt) == GIMPLE_RESX)
 	  SET_BIT (reachable, gimple_resx_region (stmt));
 	if ((region = lookup_stmt_eh_region (stmt)) >= 0)
 	  SET_BIT (contains_stmt, region);

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