This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix PR lto/61313
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Nov 2015 13:02:33 +0100
- Subject: [patch] Fix PR lto/61313
- Authentication-results: sourceware.org; auth=none
Hi,
this fixes the glitch I introduced when trying to fix another bug:
https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00330.html
The --with-plugin-ld value specified by the user is also stripped, although
that's unnecessay to fix the original bug. So I guess that we can leave this
value alone, as before my patch.
Tested on x86_64-suse-linux, OK for all active branches?
2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
PR lto/61313
* configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
by the user.
* configure: Regenerate.
--
Eric Botcazou
Index: configure.ac
===================================================================
--- configure.ac (revision 230589)
+++ configure.ac (working copy)
@@ -2246,7 +2246,7 @@ AC_ARG_WITH(plugin-ld,
[AS_HELP_STRING([[--with-plugin-ld=[ARG]]], [specify the plugin linker])],
[if test x"$withval" != x; then
ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
- PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
+ PLUGIN_LD_SUFFIX="$withval"
fi])
AC_SUBST(ORIGINAL_PLUGIN_LD_FOR_TARGET)
AC_DEFINE_UNQUOTED(PLUGIN_LD_SUFFIX, "$PLUGIN_LD_SUFFIX", [Specify plugin linker])