This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH COMMITTED: Fix enum comparison
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Mar 2009 17:04:34 -0700
- Subject: 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);