https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67979
zet <feqin1023 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Resolution|INVALID |FIXED --- Comment #2 from zet <feqin1023 at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > The code is undefined if NULL is passed and that is why the branch is > removed. If you don't want this optimization then use > -fno-delete-null-pointer-checks Well, it's a feature. Thx.