Message ID | CAFiYyc0JiSofWaj-8cX_svVSXzkYhFWdnPUK-d4+j855rtXOGA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Index: gcc/gimplify.c =================================================================== --- gcc/gimplify.c (revision 245594) +++ gcc/gimplify.c (working copy) @@ -11977,7 +11977,8 @@ gimplify_expr (tree *expr_p, gimple_seq { /* We aren't looking for a value, and we don't have a valid statement. If it doesn't have side-effects, throw it away. */ - if (!TREE_SIDE_EFFECTS (*expr_p)) + if (TREE_CODE (*expr_p) == LABEL_DECL + || !TREE_SIDE_EFFECTS (*expr_p)) *expr_p = NULL; else if (!TREE_THIS_VOLATILE (*expr_p)) {