This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn about double exclamation !!


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]