[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Fri Sep 30 23:43:49 2016 New Revision: 240688 URL: https://gcc.gnu.org/viewcvs?rev=240688=gcc=rev Log: PR c/77490 * c-c++-common/Wbool-operation-1.c: Add -Wno-psabi to dg-options. Add dg-prune-output directive. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/Wbool-operation-1.c
[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #4 from Marek Polacek --- Done.
[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Sat Sep 24 09:39:23 2016 New Revision: 240462 URL: https://gcc.gnu.org/viewcvs?rev=240462=gcc=rev Log: PR c/77490 * c.opt (Wbool-operation): New. * c-typeck.c (build_unary_op): Warn about bit not on expressions that have boolean value. Warn about ++/-- on booleans. * typeck.c (cp_build_unary_op): Warn about bit not on expressions that have boolean value. * doc/invoke.texi: Document -Wbool-operation. * c-c++-common/Wbool-operation-1.c: New test. * gcc.dg/Wbool-operation-1.c: New test. Added: trunk/gcc/testsuite/c-c++-common/Wbool-operation-1.c trunk/gcc/testsuite/gcc.dg/Wbool-operation-1.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c.opt trunk/gcc/c/ChangeLog trunk/gcc/c/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/doc/invoke.texi trunk/gcc/testsuite/ChangeLog
[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Mine.
[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-09-07 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed.
[Bug c/77490] bit-not (~) on boolean should be warned about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77490 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal |enhancement