https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528
--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> --- (In reply to Andrew Pinski from comment #1) > what options are you using to compile the source? > Does it work at -O0? You are right: the problem doesn't appear for -O0. Our defaults are the libtool defaults of -g -O2.