Patchwork Cleanup tree-switch-conversion a bit

login
register
mail settings
Submitter Steven Bosscher
Date April 18, 2012, 6:37 p.m.
Message ID <CABu31nPFvzZj9E1bj_MFeK5KU0pXm_Sm6Vr_dy=B9N4zDMhQzQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/153563/
State New
Headers show

Comments

Steven Bosscher - April 18, 2012, 6:37 p.m.
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.

Patch

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);