[Bug c/90535] Wrong branch selected if (--(s.ptr))

2019-05-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90535

--- Comment #2 from Andrew Pinski  ---
-fno-delete-null-pointer-checks is the correct option.

https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Optimize-Options.html#index-fdelete-null-pointer-checks

[Bug c/90535] Wrong branch selected if (--(s.ptr))

2019-05-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90535

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Andrew Pinski  ---
You cant go from a normal pointer to a null pointer in well defined C code. 
Gcc has -fno-delete-null-checks (I might have typed it wrong as I am writing
this from my phone).