aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-01-08 02:37:00 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2011-01-08 01:37:00 +0000
commit96bdf9b4035f9628ee214b9d773c313b065e36bf (patch)
tree6f419805e71a133ecdcbe5137da91c38f6dab263 /gcc/configure
parentf35cafc9ff3898a2205a2089f315f19640da1041 (diff)
downloadgcc-96bdf9b4035f9628ee214b9d773c313b065e36bf.zip
gcc-96bdf9b4035f9628ee214b9d773c313b065e36bf.tar.gz
gcc-96bdf9b4035f9628ee214b9d773c313b065e36bf.tar.bz2
Makefile.in: Regenerate.
* Makefile.in: Regenerate. * Makefile.def (gcc host module) and soft dependency on lto-plugin and configure dependency on lto-plugin configure. (lto-plugin module): Remove dependency on GCC; add dependency on liniberty. * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults and no longer claim that gold is required for linker plugin. * configure: Regenerate. * gcc.c (PLUGIN_COND): New macro. (LINK_COMMAND_SPEC): Use it. (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set. * config.in (HAVE_LTO_PLUGIN): New. * configure.ac (--with-lto-plugin): New parameter; autodetect HAVE_LTO_PLUGIN. From-SVN: r168593
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index d1a68a8..46c5285 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -23093,6 +23093,29 @@ $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
$as_echo "$gcc_cv_ld_demangle" >&6; }
fi
+if test -f ../lto-plugin/Makefile ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
+$as_echo_n "checking linker plugin support... " >&6; }
+ gcc_cv_lto_plugin=no
+ if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET=" = x"$gcc_cv_ld"; then
+ if test x"$ld_is_gold" = xyes; then
+ gcc_cv_lto_plugin=yes
+ elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then \
+ gcc_cv_lto_plugin=yes
+ fi
+ # Check if the linker supports --plugin-opt option
+ elif $ORIGINAL_PLUGIN_LD_FOR_TARGET --help 2>/dev/null | grep plugin-opt > /dev/null; then
+ gcc_cv_lto_plugin=yes
+ fi
+ if test x"$gcc_cv_lto_plugin" = xyes; then
+
+$as_echo "#define HAVE_LTO_PLUGIN 1" >>confdefs.h
+
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
+$as_echo "$gcc_cv_lto_plugin" >&6; }
+fi
+
case "$target" in
# All TARGET_ABI_OSF targets.
alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)