diff mbox

PR lto/63603: Fix -fno-lto handling in driver (gcc/gcc.c)

Message ID 20141022115750.GC32695@physik.fu-berlin.de
State New
Headers show

Commit Message

Tobias Burnus Oct. 22, 2014, 11:57 a.m. UTC
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}.

Comments

Markus Trippelsdorf Oct. 23, 2014, 4:17 p.m. UTC | #1
On 2014.10.22 at 13:57 +0200, Tobias Burnus wrote:
> 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.

This breaks bootstrap-lto:
...
configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
diff mbox

Patch

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 " \