[llvm-bugs] [Bug 45913] New: LLD should not error out on "-plugin-opt=Os"
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 13 13:40:45 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45913
Bug ID: 45913
Summary: LLD should not error out on "-plugin-opt=Os"
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: manojgupta at google.com
CC: george.burgess.iv at gmail.com, llvm-bugs at lists.llvm.org,
maskray at google.com, smithp352 at googlemail.com
(Also see https://bugs.chromium.org/p/chromium/issues/detail?id=1082378)
Clang passes "-plugin-opt=Os" to LLD when "-Os" is passed to clang in lto or
thnlto mode. LLD however does not like it.
$ clang -o main foo.o -Os -flto=thin -fuse-ld=lld -v
ld.lld: error: -plugin-opt=Os: number expected, but got 's'
clang-11: error: linker command failed with exit code 1 (use -v to see
invocation)
"-Os" is a fairly common compiler option and may not be easy to remove from
build flags. It'd be nice if LLD does not error out in this case.
--
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/20200513/1b733112/attachment.html>
More information about the llvm-bugs
mailing list