[PATCH] D36227: [ELF] - LTO: Try to be option compatible with the gold plugin.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 17:34:01 PDT 2017


Note that gcc has be bad habit of always passing some options, so we
pretty much have to ignore those:

-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
 -plugin-opt=-fresolution=/tmp/ccDwKjmW.res
 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s
 -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
 -plugin-opt=-pass-through=-lgcc_s

Cheers,
Rafael

Davide Italiano via Phabricator <reviews at reviews.llvm.org> writes:

> davide requested changes to this revision.
> davide added a comment.
> This revision now requires changes to proceed.
>
> This patch lies in the limbo between fully supported and completely unsupported.
> As such, I'm not sure I like it.
> Previously, we just ignored every possible argument to `--plugin-opt` (or `plugin-opt` entirely).
> I guess we should at least error out in case the argument can't be translated (or add a test for that).
>
>
> https://reviews.llvm.org/D36227


More information about the llvm-commits mailing list