re PR driver/46944 (gcc should accept -fuse-linker-plugin only if linker handles...
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 16 Mar 2011 09:41:16 +0000 (09:41 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 16 Mar 2011 09:41:16 +0000 (09:41 +0000)
commit55b465747a451db5ae2255e97bbe30b5b3987098
tree4b6f1a55c5f340871037eaece338e7df6f200979
parentc2969d8ee4dd8fc1242cd98a27299eb6fe9e17ae
re PR driver/46944 (gcc should accept -fuse-linker-plugin only if linker handles -plugin)

PR lto/46944
* configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
Handle in-tree gold.
(ld_vers): Extract binutils version for gold.
(gcc_cv_ld_hidden): Handle gold here.
(gcc_cv_lto_plugin): Determine level of linker plugin support.
* configure: Regenerate.
* config.in: Regenerate.
* gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
-fuse-linker-plugin otherwise.
(LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
(LINK_COMMAND_SPEC): Use it.
(main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.

From-SVN: r171039
gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/gcc.c