This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn about double exclamation !!
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Mar 2015 11:38:48 +0000
- Subject: [Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn about double exclamation !!
- Auto-submitted: auto-generated
- References: <bug-65120-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65120
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Btw, just saw
> [ 2808s] ../drivers/xen/sfc_netfront/falcon_event.c:113:43: error: logical
> not is only applied to the left hand side of comparison
> [-Werror=logical-not-parentheses]
> [ 2808s] BUG_ON(!QWORD_GET_U(RX_EV_BYTE_CNT, *ev) == 0);
> [ 2808s] ^
which I think we should preserve - so make sure that the !! special-casing
doesn't cover this case from macro expansion.