<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GCC memory starvation caused by flatten attribute with LTO"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77580#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GCC memory starvation caused by flatten attribute with LTO"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77580">bug 77580</a>
              from <span class="vcard"><a class="email" href="mailto:doctorwhoguy@gmail.com" title="Patrick McMunn <doctorwhoguy@gmail.com>"> <span class="fn">Patrick McMunn</span></a>
</span></b>
        <pre>Also, make sure that you're passing the same flags to the linker that you're
passing to the compiler. If your compiler flags are something like

CXXFLAGS="-O2 -march=native -flto -ffat-lto-objects -fuse-linker-plugin"

then your linker flags should look something like

LDFLAGS="-Wl,-O1 -Wl,--as-needed -O2 -march=native -flto -ffat-lto-objects
-fuse-linker-plugin"

Otherwise it won't be properly optimized during the linking phase.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>