From f3ba16d0589db7548b76f381102759f2c4cc7558 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 6 Mar 2014 08:48:01 +0000 Subject: gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the... 2014-03-06 Richard Biener * 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 --- gcc/gcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gcc.c') 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 -- cgit v1.1