Glad we all agree. I opened
https://llvm.org/bugs/show_bug.cgi?id=30720 to keep track of this.

On Mon, Oct 17, 2016 at 9:08 AM, Rui Ueyama <r...@google.com> wrote:
> Agreed. We should define them as aliases to existing options without
> -plugin-opt.
>
> On Sun, Oct 16, 2016 at 6:43 PM, Sean Silva via cfe-commits
> <cfe-commits@lists.llvm.org> wrote:
>>
>> Nice to see this land!
>>
>> One nit:
>> Currently, doesn't LLD/ELF ignore -plugin-opt? That will mean that if a
>> user uses the "gold syntax" then LLD will silently ignore it, which isn't
>> good. At the very least, can we issue an error if we see `-plugin-opt
>> jobs=N` and suggest the LLD spelling?
>>
>> Or maybe just accept the gold syntax? Our current handling of `-plugin`
>> and `-plugin-opt` is intended to make LLD transparently Do The Right Thing
>> when LLD is invoked as if it were gold, so clearly gold compatibility is
>> important enough for that. This suggests it is important enough to be
>> compatible from a ThinLTO perspective too.
>>
>> -- Sean Silva
>>
>> On Thu, Oct 13, 2016 at 10:42 AM, Davide Italiano via cfe-commits
>> <cfe-commits@lists.llvm.org> wrote:
>>>
>>> Author: davide
>>> Date: Thu Oct 13 12:42:38 2016
>>> New Revision: 284137
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=284137&view=rev
>>> Log:
>>> [ThinLTO] Update doc to include lld (now supported).
>>>
>>> Differential Revision:  https://reviews.llvm.org/D25537
>>>
>>> Modified:
>>>     cfe/trunk/docs/ThinLTO.rst
>>>
>>> Modified: cfe/trunk/docs/ThinLTO.rst
>>> URL:
>>> http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ThinLTO.rst?rev=284137&r1=284136&r2=284137&view=diff
>>>
>>> ==============================================================================
>>> --- cfe/trunk/docs/ThinLTO.rst (original)
>>> +++ cfe/trunk/docs/ThinLTO.rst Thu Oct 13 12:42:38 2016
>>> @@ -62,8 +62,8 @@ ThinLTO is currently supported for the f
>>>    <http://llvm.org/docs/GoldPlugin.html>`_.
>>>  - **ld64**:
>>>    Starting with `Xcode 8 <https://developer.apple.com/xcode/>`_.
>>> -
>>> -Additionally, support is being added to the *lld* linker.
>>> +- **lld**:
>>> +  Starting with r284050 (ELF only).
>>>
>>>  Usage
>>>  =====
>>> @@ -109,6 +109,8 @@ be reduced to ``N`` via:
>>>    ``-Wl,-plugin-opt,jobs=N``
>>>  - ld64:
>>>    ``-Wl,-mllvm,-threads=N``
>>> +- lld:
>>> +  ``-Wl,--thinlto-jobs=N``
>>>
>>>  Incremental
>>>  -----------
>>>
>>>
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits@lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits@lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>>
>



-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to