-use-linker-plugin passed to ld

Rafael Espindola espindola@google.com
Sat Oct 24 04:26:00 GMT 2009


> I thought about that too, but a -f flag would be passed to the
> middle-end, where it does not make any sense.  We could make it a -f
> flag anyhow, of course, and just explicitly ignore it in the
> middle-end.
>
> Any opinions on the best user interface for this?

From an user interface point of view I have no preferences for
-fuse-linker-plugin or -use-linker-plugin. I don't like the idea of
ignoring -fuse-linker-plugin on the compilers (cc1/cc1plus/...).
We should probably filter it on the driver.

From an implementation point of view it is easier to avoid
-use-linker-plugin being passed to the linker than it is
to avoid -fuse-linker-plugin being passed to the compilers.
The reason is that we don't need the option after linking,
so we can just use %< to filter it out. With -f I think we
would have to record it in a variable and use that in
the spec.

BTW, a bootstrap with the original patch attached
finished successfully.

> Ian
>

Cheers,
-- 
Rafael Ávila de Espíndola



More information about the Gcc mailing list