[patch] Pass -fuse-ld=gold to gccgo on targets supporting -fsplit-stack

Ian Lance Taylor iant@google.com
Wed Jan 22 19:27:00 GMT 2014


On Wed, Jan 22, 2014 at 10:16 AM, Matthias Klose <doko@ubuntu.com> wrote:
>
> Ok, but I cannot do this directly.  gcc_cv_ld may already be an absolute path.
> So now I'm checking the very same location as gcc_cv_ld first, then fall back to
> AC_PATH_PROG.

When I look at gcc/configure.ac and gcc/exec-tool.in, it seems to me
that if you pass -fuse-ld=gold the tool will execute
ORIGINAL_LD_GOLD_FOR_TARGET.  Can we simply change the configure
script to test whether that file exists when deciding whether to set
HAVE_GOLD_NON_DEFAULT?

Also, it seems to me that all we really need to set is HAVE_GOLD.  The
code in gospec.c can pass -fuse-ld=gold when -fuse-ld does not appear
and HAVE_GOLD is true.  It's not necessary to only pass -fuse-ld=gold
when gold is not the default.

Ian



More information about the Gcc-patches mailing list