[Bug c++/69850] [6 Regression] unnecessary -Wnonnull-compare warning
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 17 13:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69850
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2016-02-17
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 37723
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37723&action=edit
gcc6-pr69850.patch
Untested fix. Another possibility is to STRIP_NOPS and if it is this, set
ifexp to integer_one_node. But we need the TREE_NO_WARNING stuff anyway,
because e.g. in function with nonnull parameter other than this, that at some
point is changed, the comparison would be still desirable and valid.
More information about the Gcc-bugs
mailing list