[llvm-bugs] [Bug 27376] New: LLVM 3.8/trunk LTO no longer supports -Os flag?

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 15 11:37:36 PDT 2016


            Bug ID: 27376
           Summary: LLVM 3.8/trunk LTO no longer supports -Os flag?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: steven at uplinklabs.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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 <peter at pcc.me.uk>
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
    passes that run at -O0, specifically simplifycfg which cleans up


    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232769

It results in this error at link time:

/usr/bin/ld: error: Optimization level must be between 0 and 3

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160415/0b79fe78/attachment.html>

More information about the llvm-bugs mailing list