c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal result for SAVE_EXPR...
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 May 2017 18:55:29 +0000 (20:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 May 2017 18:55:29 +0000 (20:55 +0200)
commitd11c168a673e6a451bbaa7ccde2ed2229d123a94
tree6d918c0e931b961e5663d3b16155ac38e6bfbe1c
parent655e52652b2af93ae6508dfc2026c6903bf391de
c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal result for SAVE_EXPR operand and set...

* c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
it returned invariant.  Call tree_invariant_p unconditionally
afterwards to decide whether to return expr or op0.

From-SVN: r248347
gcc/c/ChangeLog
gcc/c/c-fold.c