[Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78917 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0, 7.3.0, 8.2.0,

[Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function

2019-05-10 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78917 --- Comment #3 from Eric Gallager --- (In reply to Martin Sebor from comment #2) > Another test case: > > $ cat f.c && gcc -O2 -S -Wall -Wextra f.c > int f (int i) > { > const char * p = __builtin_strchr (i ? "123" : "456", '2'); > return

[Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function

2018-08-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78917 --- Comment #2 from Martin Sebor --- Another test case: $ cat f.c && gcc -O2 -S -Wall -Wextra f.c int f (int i) { const char * p = __builtin_strchr (i ? "123" : "456", '2'); return __builtin_strlen (p); } The strlen argument is a phi with

[Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function

2017-08-28 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78917 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|