https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111522
Bug ID: 111522 Summary: Different code path for static initialization with flto Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: malat at debian dot org Target Milestone: --- Created attachment 55962 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55962&action=edit c++ code I am seeing a difference in behavior when using -flto. Consider the following: % c++ -std=c++11 -g -O2 -o works lto.cc % c++ -std=c++11 -g -O2 -flto -o fails lto.cc % ./works&& echo "success" success % ./fails zsh: illegal hardware instruction ./fails This a POWER8 system.