This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR lto/63603: Fix -fno-lto handling in driver (gcc/gcc.c)
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Oct 2014 13:57:50 +0200
- Subject: PR lto/63603: Fix -fno-lto handling in driver (gcc/gcc.c)
- Authentication-results: sourceware.org; auth=none
I intent to commit the following patch this evening, which was
pre-proved for 4.9/trunk by Richard in the PR.
However, I still need to do the bootstrapping and regtesting.
Tobias
2014-10-22 Richard Biener <rguenther@suse.de>
Tobias Burnus <burnus@net-b.de>
PR lto/63603
* gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 71c76f8..3fafa1e 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -819,7 +819,7 @@ proper position among the other output files. */
%(linker) " \
LINK_PLUGIN_SPEC \
"%{flto|flto=*:%<fcompare-debug*} \
- %{flto} %{flto=*} %l " LINK_PIE_SPEC \
+ %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \
"%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \
"%X %{o*} %{e*} %{N} %{n} %{r}\
%{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} " VTABLE_VERIFICATION_SPEC " \