]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
PR c/65120
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Mar 2015 18:26:52 +0000 (18:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Mar 2015 18:26:52 +0000 (18:26 +0000)
commit6054103a2e6ad55dee9e2d7a67097b8a8dcbfd90
tree2111b63d7da0a0531f8135d1ab1f64662e3887af
parent1fd59e4a4d48f2a450217262df43b9348c0d39c5
PR c/65120
* c-typeck.c (parser_build_binary_op): Don't warn for
!!x == y or !b == y where b is _Bool.

* parser.c (cp_parser_binary_expression): Don't warn for
!!x == y or !b == y where b is bool.

* c-c++-common/pr49706.c: Adjust tests for not warning
about !!x == y or !b == y where b is boolean, and add
some further tests.
* c-c++-common/pr62199-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221284 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr49706.c
gcc/testsuite/c-c++-common/pr62199-2.c