<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLVM 3.8/trunk LTO no longer supports -Os flag?"
   href="https://llvm.org/bugs/show_bug.cgi?id=27376">27376</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM 3.8/trunk LTO no longer supports -Os flag?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>steven@uplinklabs.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Does LTO no longer support -Os? This commit added a range check on the -O<n>
value, and rejects the -Os flag:

commit 416d8ecf80eafaefecc8e934930a2285a66a93d8
Author: Peter Collingbourne <<a href="mailto:peter@pcc.me.uk">peter@pcc.me.uk</a>>
Date:   Thu Mar 19 22:01:00 2015 +0000

    libLTO, llvm-lto, gold: Introduce flag for controlling optimization level.

    This change also introduces a link-time optimization level of 1. This
    optimization level runs only the globaldce pass as well as cleanup passes
for
    passes that run at -O0, specifically simplifycfg which cleans up
lowerbitsets.

   
<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150316/266951.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150316/266951.html</a>

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@232769">https://llvm.org/svn/llvm-project/llvm/trunk@232769</a>
91177308-0d34-0410-b5e6-96231b3b80d8

It results in this error at link time:

/usr/bin/ld: error: Optimization level must be between 0 and 3</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>