[Bug c/78989] Missing -Waddress warning due to -Wno-system-headers

2021-11-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 --- Comment #9 from Martin Sebor --- GCC 12 (and prior, down to 10) warns for the test case: $ cat pr78989.ii && gcc -S -Wall pr78989.ii int asan_poison_variables () { return (asan_poison_variables && # 6 "gimplify.cpp" 3 4

[Bug c/78989] Missing -Waddress warning due to -Wno-system-headers

2021-11-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 Bug 78989 depends on bug 77513, which changed state. Bug 77513 Summary: -Wzero-as-null-pointer-constant vs 0, nullptr, NULL and __null https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77513 What|Removed |Added

[Bug c/78989] Missing -Waddress warning due to -Wno-system-headers

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/78989] Missing -Waddress warning

2018-07-29 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 --- Comment #7 from Eric Gallager --- (In reply to Andrew Pinski from comment #6) > I suspect PR 77513 can be considered the dup. As in, that's the dup of this, or this is the dup of that?

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 Andrew Pinski changed: What|Removed |Added Depends on||77513 --- Comment #6 from Andrew Pinski

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 --- Comment #5 from Andrew Pinski --- Isn't there a dup somewhere? I Know this was filed before.

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 --- Comment #4 from David Malcolm --- ...or to use a rich location to send two locations for the warning, giving: return (asan_poison_variables && ^~ # 6 "gimplify.cpp" 3 4 __null

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 --- Comment #3 from David Malcolm --- Looking at the PRs you filed about the locations (PR78987 and PR78988), perhaps the best approach here is for the location of the warning to be either this: return (asan_poison_variables && ~~~

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 Jakub Jelinek changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,

[Bug c/78989] Missing -Waddress warning

2017-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1