<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - LLD should not error out on "-plugin-opt=Os""
href="https://bugs.llvm.org/show_bug.cgi?id=45913">45913</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLD should not error out on "-plugin-opt=Os"
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>manojgupta@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>george.burgess.iv@gmail.com, llvm-bugs@lists.llvm.org, maskray@google.com, smithp352@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre>(Also see <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1082378">https://bugs.chromium.org/p/chromium/issues/detail?id=1082378</a>)
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.</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>