diff options
author | Nick Clifton <nickc@redhat.com> | 2013-01-07 16:54:33 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2013-01-07 08:54:33 -0800 |
commit | b352afbab2dcdf3b48b08e377f48d17109297c46 (patch) | |
tree | d17099fbf4e98c921dd5658c212ee89229e8ade3 /gcc/gcc.c | |
parent | f3b503f4a16e5279050524b6ab93a1d9483078ad (diff) | |
download | gcc-b352afbab2dcdf3b48b08e377f48d17109297c46.zip gcc-b352afbab2dcdf3b48b08e377f48d17109297c46.tar.gz gcc-b352afbab2dcdf3b48b08e377f48d17109297c46.tar.bz2 |
Support -fuse-ld=bfd and -fuse-ld=gold
PR driver/55470
* collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
* common.opt: Add fuse-ld=bfd and fuse-ld=gold.
* gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
* opts.c (comman_handle_option): Ignore -fuse-ld=bfd and
-fuse-ld=gold.
* doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
Co-Authored-By: Doug Kwan <dougkwan@google.com>
Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
Co-Authored-By: Matthias Klose <doko@debian.org>
From-SVN: r194983
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -705,7 +705,8 @@ proper position among the other output files. */ LINK_PLUGIN_SPEC \ "%{flto|flto=*:%<fcompare-debug*} \ %{flto} %{flto=*} %l " LINK_PIE_SPEC \ - "%X %{o*} %{e*} %{N} %{n} %{r}\ + "%{fuse-ld=*:-fuse-ld=%*}\ + %X %{o*} %{e*} %{N} %{n} %{r}\ %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}}\ %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\ %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}\ |