[Bug middle-end/79310] -Wnonnull false positive on strlen after strstr

2017-02-01 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79310 --- Comment #3 from Marc Glisse --- We already have infer_nonnull_range_by_attribute ("Return true if OP can be inferred to be a non-NULL after STMT executes by using attributes") and I assume that strstr has the nonnull attribute in this example

[Bug middle-end/79310] -Wnonnull false positive on strlen after strstr

2017-02-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79310 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/79310] -Wnonnull false positive on strlen after strstr

2017-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79310 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization --- Comment #1 from M