From cd7fac9613dba1f3399e0bcbeca925bd72dd100d Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 10 Apr 2017 08:58:02 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gimplify.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); } -- 2.30.2