https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70112
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- There is too little information to be useful. At least please build with debugging info enabled and find out exactly what is going on. Next build with -fsanitize=undefined to see if any undefined behavior is invoked. Or try to add "-fno-lifetime-dse -fno-delete-null-pointer-checks" and see if the issue goes away.