re PR c/69768 (Bogus -Waddress warning)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Feb 2016 22:55:02 +0000 (23:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Feb 2016 22:55:02 +0000 (23:55 +0100)
commit66756373c1940650568173b6d9c32325429bfc34
tree77d4fdb0a1276a8329dd63f42ddb790207c0364b
parentec4836a75da03d1b93df6a9dff3da3b597676ed9
re PR c/69768 (Bogus -Waddress warning)

PR c/69768
* c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
arguments for -Waddress warning.

* typeck.c (cp_build_binary_op): cp_fully_fold integer_zerop
arguments for -Waddress warning.  Fix up formatting.

* c-c++-common/Waddress-1.c: New test.

From-SVN: r233357
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Waddress-1.c [new file with mode: 0644]