re PR tree-optimization/80344 (-Wuninitialized triggering on a ctor on ARM)
authorRichard Biener <rguenther@suse.de>
Mon, 10 Apr 2017 08:58:02 +0000 (08:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 10 Apr 2017 08:58:02 +0000 (08:58 +0000)
2017-04-10  Richard Biener  <rguenther@suse.de>

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

From-SVN: r246800

gcc/ChangeLog
gcc/gimplify.c

index 1f7f645aead3bed588eb2d9fb52764da25a60ae3..8a773bd0214a4f63832b0bee134f40fa5e2822c0 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-10  Richard Biener  <rguenther@suse.de>
+
+       PR middle-end/80344
+       * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/80324
index ff8d56b2154e04dd68ce1d6b45fa0e31f8fc902e..c69d5b93534e2243ca23470b9749f70fd7dc7663 100644 (file)
@@ -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);
 }