[llvm-bugs] [Bug 40348] New: At least -mno-outline and -mllvm should be redirected somehow to the linker when using LTO

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 16 22:05:54 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40348

            Bug ID: 40348
           Summary: At least -mno-outline and -mllvm should be redirected
                    somehow to the linker when using LTO
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mh+llvm at glandium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

If you use `-mno-outline` along `-flto` with clang, the linker (which does the
actual compiling) is not instructed that it should disable the outliner.

Same if you use `-mllvm -enable-machine-outliner=never`.

Other flags, like -march=something are translated to linker plugin options when
used at link time. Some flags, when used at compile time, end up in the object
files and are used automatically at link time with LTO (-march does that too,
in fact).

-- 
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/20190117/7752dacd/attachment.html>


More information about the llvm-bugs mailing list