Patchwork Cleanup tree-switch-conversion a bit

mail settings
Submitter Steven Bosscher
Date April 18, 2012, 6:37 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/153563/
State New
Headers show


Steven Bosscher - April 18, 2012, 6:37 p.m.
On Wed, Apr 18, 2012 at 8:30 PM, Steven Bosscher <> 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,