From: Richard Biener Date: Mon, 10 Apr 2017 08:58:02 +0000 (+0000) Subject: re PR tree-optimization/80344 (-Wuninitialized triggering on a ctor on ARM) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd7fac9613dba1f3399e0bcbeca925bd72dd100d;p=gcc.git re PR tree-optimization/80344 (-Wuninitialized triggering on a ctor on ARM) 2017-04-10 Richard Biener PR middle-end/80344 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs. From-SVN: r246800 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f7f645aead..8a773bd0214 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-10 Richard Biener + + PR middle-end/80344 + * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs. + 2017-04-10 Jakub Jelinek PR target/80324 diff --git a/gcc/gimplify.c b/gcc/gimplify.c index ff8d56b2154..c69d5b93534 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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); }