Boost C++ Libraries: Ticket #11712: dump_avx2 breaks -flto https://svn.boost.org/trac10/ticket/11712 <p> you know this already, but according to <a class="ext-link" href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043#c3"><span class="icon">​</span>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043#c3</a> you can use <a class="ext-link" href="https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Function-Specific-Option-Pragmas.html"><span class="icon">​</span>https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Function-Specific-Option-Pragmas.html</a> since gcc 4.9. or at least provide build-time switch for disabling this optimization, the best workaround i found is commenting out offending sources in jamfile, which is suboptimal. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11712 Trac 1.4.3 Andrey Semashev Tue, 06 Oct 2015 18:15:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11712#comment:1 https://svn.boost.org/trac10/ticket/11712#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9766" title="#9766: Bugs: boost &gt;= 1.54 failes to compile with gcc-4.8.2 and LTO enabled (closed: fixed)">#9766</a>. </p> <p> LTO is not supported, I believe, until gcc 5 (I did not check), which attaches the necessary target attributes to functions automatically. I see no point in marking functions specifically for 4.9. Marking functions is not possible for pre-4.9 gcc releases. </p> Ticket