aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-03-06 08:48:01 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-03-06 08:48:01 +0000
commitf3ba16d0589db7548b76f381102759f2c4cc7558 (patch)
treefa7f9924d2c5057881344899e74b9fd4ecc3993d /gcc/gcc.c
parentdf2b279c5c77f5925e85246f3dbdad92508c573b (diff)
downloadgcc-f3ba16d0589db7548b76f381102759f2c4cc7558.zip
gcc-f3ba16d0589db7548b76f381102759f2c4cc7558.tar.gz
gcc-f3ba16d0589db7548b76f381102759f2c4cc7558.tar.bz2
gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the...
2014-03-06 Richard Biener <rguenther@suse.de> * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the linker has full plugin support. * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled. (main): Remove -flto processing, adjust lto_mode using use_plugin late. * lto-wrapper.c (merge_and_complain): Merge compile-time optimization levels. (run_gcc): And pass it through to the link options. From-SVN: r208375
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 9f76f89..691623a 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -695,7 +695,7 @@ proper position among the other output files. */
#if HAVE_LTO_PLUGIN > 0
/* The linker used has full plugin support, use LTO plugin by default. */
#if HAVE_LTO_PLUGIN == 2
-#define PLUGIN_COND "!fno-use-linker-plugin:%{flto|flto=*|fuse-linker-plugin"
+#define PLUGIN_COND "!fno-use-linker-plugin:%{!fno-lto"
#define PLUGIN_COND_CLOSE "}"
#else
/* The linker used has limited plugin support, use LTO plugin with explicit