[Bug c/69768] [6 Regression] Bogus -Waddress warning
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 11 22:55:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69768
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 11 22:55:02 2016
New Revision: 233357
URL: https://gcc.gnu.org/viewcvs?rev=233357&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/Waddress-1.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list