[lld] r263862 - [LTO] Ignore -plugin/-plugin-opt options.

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 16:15:53 PDT 2016


Sounds good.
On Sat, 19 Mar 2016 at 23:46, Davide Italiano <davide at freebsd.org> wrote:

> On Sat, Mar 19, 2016 at 12:05 PM, James Molloy <james at jamesmolloy.co.uk>
> wrote:
> > Hi Davide,
> >
> > -plugin-opt is passed when the user attempts to change the LTO behaviour
> -
> > for example overriding the codegen option level, or passing a backend
> option
> > to LLVM. It being ignored silently will surely cause much head scratching
> > down the line.
> >
> > Can we at least get a diagnostic with the intended alternative listed?
> >
>
> Currently lld doesn't pass any option to the backend but it definitely
> will in the near future.
> Just to give you a little bit more context: currently I'm passing this
> option to facilitate my testing of -flto. There are still missing
> pieces in LTO support, so you can see this commit more as a
> convenience for us (us being the people working on lld, in particular
> on LTO).
>
> My idea is to introduce -lto-opt for lld (because there's no plugin)
> but to make the transition smoother for existing users alias that
> option to -plugin-opt. Hope this makes sense.
>
> Thanks,
>
> --
> Davide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160319/7ce68c0d/attachment.html>


More information about the llvm-commits mailing list