[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2024-03-25 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 Barry Revzin changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2023-06-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #11 from Andrew Pinski --- *** Bug 110493 has been marked as a duplicate of this bug. ***

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2022-12-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 Andrew Pinski changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Comment

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2020-03-30 Thread herring at lanl dot gov
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2017-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #8 from Martin Sebor --- (In reply to Jakub Jelinek from comment #7) The null pointer check inserted by the sanitizer is eventually removed (see below) so there's obviously no point in emitting it to begin with. The DSP case you

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2017-07-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #7 from Jakub Jelinek --- (In reply to Martin Sebor from comment #6) > The difference between success and failure is due to this bit of code in > symtab.c: > > /* With !flag_delete_null_pointer_checks we assume that symbols may >

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2017-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #6

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2017-07-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2016-07-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #4 from Jakub Jelinek --- If we do that, the question is when to (temporarily) enable the null pointer check deletion (unless disabled explicitly with -fno-delete-null-pointer-checks or from the target defaults, like AVR ...).

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2016-07-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #3 from Jakub Jelinek --- But we still don't want to optimize aggressively based on assumed null pointer checks, after all, that is the whole point of the null sanitization. Would static inline bool delete_null_pointer_checks_p () {

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2016-07-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #2 from Richard Biener --- Maybe the sanitizers could use sth not visible to the middle-end for null pointer tests, like a new IFN?

[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression

2016-07-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 --- Comment #1 from Jakub Jelinek --- The thing is that -fsanitize=null (and a couple of other sanitizers) imply -fno-delete-null-pointer-checks, as it doesn't want all the checks it adds removed and fold obviously doesn't fold != NULL with