aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-05-24 10:38:44 -0400
committerJason Merrill <jason@gcc.gnu.org>2019-05-24 10:38:44 -0400
commitc2465daec4df2d1a03be26a1fa9147382964a16e (patch)
treee2e0677f8362e015c96351d1ff88f63abcf7c77f /gcc
parent2fb1b29d371f1536d730852681f90ab6757acd8a (diff)
downloadgcc-c2465daec4df2d1a03be26a1fa9147382964a16e.zip
gcc-c2465daec4df2d1a03be26a1fa9147382964a16e.tar.gz
gcc-c2465daec4df2d1a03be26a1fa9147382964a16e.tar.bz2
Revert "* gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE."
This reverts commit ac0f04360cc04e5b80a7d74f7edc47e395d2e744. From-SVN: r271604
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gimplify.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d731bed..6bc4d1a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-24 Jason Merrill <jason@redhat.com>
+
+ Revert:
+ * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
+
2019-05-24 Richard Biener <rguenther@suse.de>
PR testsuite/90607
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 8337b36..e5713dd 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -3990,12 +3990,10 @@ gimplify_cond_expr (tree *expr_p, gimple_seq *pre_p, fallback_t fallback)
tree result;
/* If either an rvalue is ok or we do not require an lvalue, create the
- temporary. We cannot do that if the type is addressable, but
- that should have been avoided before we got here. */
+ temporary. But we cannot do that if the type is addressable. */
if (((fallback & fb_rvalue) || !(fallback & fb_lvalue))
- && (flag_checking || !TREE_ADDRESSABLE (type)))
+ && !TREE_ADDRESSABLE (type))
{
- gcc_assert (!TREE_ADDRESSABLE (type));
if (gimplify_ctxp->allow_rhs_cond_expr
/* If either branch has side effects or could trap, it can't be
evaluated unconditionally. */