Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2017-04-10  Richard Biener  <rguent...@suse.de>

        PR middle-end/80344
        * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.

Index: gcc/gimplify.c
===================================================================
--- gcc/gimplify.c      (revision 246757)
+++ gcc/gimplify.c      (working copy)
@@ -493,7 +493,9 @@ is_gimple_mem_rhs_or_call (tree t)
   if (is_gimple_reg_type (TREE_TYPE (t)))
     return is_gimple_val (t);
   else
-    return (is_gimple_val (t) || is_gimple_lvalue (t)
+    return (is_gimple_val (t)
+           || is_gimple_lvalue (t)
+           || TREE_CLOBBER_P (t)
            || TREE_CODE (t) == CALL_EXPR);
 }
 

Reply via email to