[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-04-01 Thread thadula at ciena dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #12 from Hadula, Tomasz --- > The reduced testcase doesn't have the pattern you describe in > the description. Well, of course, I couldn't verify that for sure, because the reduced testcase was so severely mutilated that I couldn't p

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-04-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #11 from Jonathan Wakely --- (In reply to Richard Biener from comment #10) > McCpId* pCpId = static_cast(&newCpId); > > and it's further use. You can't use an object of McId via a pointer to > McCpId but you call > > pCpId-

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-04-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 Richard Biener changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-03-31 Thread thadula at ciena dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #9 from Hadula, Tomasz --- Created attachment 38148 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38148&action=edit Reduced testcase I reduced the size of the testcase

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-03-29 Thread thadula at ciena dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #8 from Hadula, Tomasz --- When I compile with devirtualization disabled (i.e. with -fno-devirtualize) the null pointer check is where it was supposed to be. Any clue why?

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-03-25 Thread thadula at ciena dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #7 from Hadula, Tomasz --- Created attachment 38094 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38094&action=edit Preprocessed source generated by gcc -v -save-temps Unfortunately I had to compress it with gzip as the file s

[Bug c++/70403] A null pointer check removed with -O2 even with -fno-delete-null-pointer-checks

2016-03-25 Thread thadula at ciena dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #6 from Hadula, Tomasz --- Created attachment 38093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38093&action=edit Output from gcc -v -save-temps Generated by g++ -v -save-temps