Commit c2465dae by Jason Merrill Committed by Jason Merrill

Revert "* gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE."

This reverts commit ac0f04360cc04e5b80a7d74f7edc47e395d2e744.

From-SVN: r271604
parent 2fb1b29d
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> 2019-05-24 Richard Biener <rguenther@suse.de>
PR testsuite/90607 PR testsuite/90607
......
...@@ -3990,12 +3990,10 @@ gimplify_cond_expr (tree *expr_p, gimple_seq *pre_p, fallback_t fallback) ...@@ -3990,12 +3990,10 @@ gimplify_cond_expr (tree *expr_p, gimple_seq *pre_p, fallback_t fallback)
tree result; tree result;
/* If either an rvalue is ok or we do not require an lvalue, create the /* 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 temporary. But we cannot do that if the type is addressable. */
that should have been avoided before we got here. */
if (((fallback & fb_rvalue) || !(fallback & fb_lvalue)) 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 (gimplify_ctxp->allow_rhs_cond_expr
/* If either branch has side effects or could trap, it can't be /* If either branch has side effects or could trap, it can't be
evaluated unconditionally. */ evaluated unconditionally. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment