This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Cleanup tree-switch-conversion a bit
On Wed, Apr 18, 2012 at 8:30 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> The Go bits approved on IRC by Iant, the Fortran bits are obvious, and
> the rest was already approved. This is r186579 now.
And because I managed to commit from the wrong tree, the fixed commit
is r186580.
Index: gimplify.c
===================================================================
--- gimplify.c (revision 186579)
+++ gimplify.c (working copy)
@@ -1578,7 +1578,6 @@ gimplify_switch_expr (tree *expr_p, gimple_seq *pr
tree index_type = TREE_TYPE (switch_expr);
if (index_type == NULL_TREE)
index_type = TREE_TYPE (SWITCH_COND (switch_expr));
- gcc_assert (INTEGRAL_TYPE_P (index_type));
ret = gimplify_expr (&SWITCH_COND (switch_expr), pre_p, NULL, is_gimple_val,
fb_rvalue);