[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=
From:       Richard Smith via cfe-commits <cfe-commits () lists ! llvm ! org>
Date:       2015-08-25 18:01:29
Message-ID: CAOfiQqk32Pn3MTjO0_XQBwP_TSLuKESp1OpQ+GYxKPOnKU7oUA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Aug 25, 2015 10:26 AM, "Filipe Cabecinhas" <
filcab+llvm.phabricator@gmail.com> wrote:
>
> Hi Richard,
>
> We wouldn't be able to link with libs matching
"libinker=*.{dylib,so,...}", I guess. If that is a big problem and you'd
prefer that we keep this as a private patch, let me know.

I don't think it's a big problem, more just a "try to pick better flag
names in future" comment :) It sounds like you guys have existing systems
that depend on this name, so while I'm not really overjoyed about this,
accepting it for compatibility seems OK.

Can we produce an accompanying "deprecated" warning suggesting use of the
other name?

> Thank you,
>
>   Filipe
>
>
> On Mon, Aug 24, 2015 at 6:45 PM, Richard Smith <richard@metafoo.co.uk>
wrote:
>>
>> On Mon, Aug 24, 2015 at 5:50 PM, Eric Christopher via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
>>>
>>> echristo added inline comments.
>>>
>>> ================
>>> Comment at: include/clang/Driver/Options.td:1853
>>> @@ -1853,1 +1852,3 @@
>>> +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use linker
<name>">, Group<f_Group>;
>>> +def linker_EQ : Joined<["-"], "linker=">, Alias<fuse_ld_EQ>,
MetaVarName<"<name>">;
>>>
>>> ----------------
>>> thakis wrote:
>>> > Any reason to have another alias for this at all? Does gcc understand
this spelling? If not, could you limit this flag to PS4 targets? (I'm
guessing you need it for PS4 targets for some reason.)
>>> Any reason? (And I'm not sure how to limit it btw on target).
>>
>>
>> -l already has a meaning; adding a different flag starting with -l is a
bad idea.
>
>

[Attachment #5 (text/html)]

<p dir="ltr">On Aug 25, 2015 10:26 AM, &quot;Filipe Cabecinhas&quot; &lt;<a \
href="mailto:filcab%2Bllvm.phabricator@gmail.com">filcab+llvm.phabricator@gmail.com</a>&gt; \
wrote:<br> &gt;<br>
&gt; Hi Richard,<br>
&gt;<br>
&gt; We wouldn&#39;t be able to link with libs matching \
&quot;libinker=*.{dylib,so,...}&quot;, I guess. If that is a big problem and \
you&#39;d prefer that we keep this as a private patch, let me know.</p> <p \
dir="ltr">I don&#39;t think it&#39;s a big problem, more just a &quot;try to pick \
better flag names in future&quot; comment :) It sounds like you guys have existing \
systems that depend on this name, so while I&#39;m not really overjoyed about this, \
accepting it for compatibility seems OK.</p> <p dir="ltr">Can we produce an \
accompanying &quot;deprecated&quot; warning suggesting use of the other name?</p> <p \
dir="ltr">&gt; Thank you,<br> &gt;<br>
&gt;    Filipe<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Aug 24, 2015 at 6:45 PM, Richard Smith &lt;<a \
href="mailto:richard@metafoo.co.uk">richard@metafoo.co.uk</a>&gt; wrote:<br> \
&gt;&gt;<br> &gt;&gt; On Mon, Aug 24, 2015 at 5:50 PM, Eric Christopher via \
cfe-commits &lt;<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>&gt; \
wrote:<br> &gt;&gt;&gt;<br>
&gt;&gt;&gt; echristo added inline comments.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ================<br>
&gt;&gt;&gt; Comment at: include/clang/Driver/Options.td:1853<br>
&gt;&gt;&gt; @@ -1853,1 +1852,3 @@<br>
&gt;&gt;&gt; +def fuse_ld_EQ : Joined&lt;[&quot;-&quot;], &quot;fuse-ld=&quot;&gt;, \
HelpText&lt;&quot;Use linker &lt;name&gt;&quot;&gt;, Group&lt;f_Group&gt;;<br> \
&gt;&gt;&gt; +def linker_EQ : Joined&lt;[&quot;-&quot;], &quot;linker=&quot;&gt;, \
Alias&lt;fuse_ld_EQ&gt;, MetaVarName&lt;&quot;&lt;name&gt;&quot;&gt;;<br> \
&gt;&gt;&gt;<br> &gt;&gt;&gt; ----------------<br>
&gt;&gt;&gt; thakis wrote:<br>
&gt;&gt;&gt; &gt; Any reason to have another alias for this at all? Does gcc \
understand this spelling? If not, could you limit this flag to PS4 targets? (I&#39;m \
guessing you need it for PS4 targets for some reason.)<br> &gt;&gt;&gt; Any reason? \
(And I&#39;m not sure how to limit it btw on target).<br> &gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -l already has a meaning; adding a different flag starting with -l is a bad \
idea.<br> &gt;<br>
&gt;<br>
</p>


[Attachment #6 (text/plain)]

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic