]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
Delay folding of bool conversion into COND_EXPR.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Oct 2016 17:40:22 +0000 (17:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Oct 2016 17:40:22 +0000 (17:40 +0000)
commit7a7ca07c18e7dca21d49bd517b8f84bf33141d5f
tree243c02c542d5ba8e9536eb8932e83a95ef4af526
parentc3db456362e2b9b6d0b7b9564d2a2796f95cea0c
Delay folding of bool conversion into COND_EXPR.

gcc/c-family/
* c-common.c (c_common_truthvalue_conversion): Don't distribute
into COND_EXPR in C++.
gcc/cp/
* cp-gimplify.c (cp_fold): Distribute cp_truthvalue_conversion
into COND_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240893 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c