diff mbox

[darwin,committed] Update darwin.h for changed lto switches.

Message ID 92DE0031-CC56-45C1-9337-4ED66B441300@sandoe-acoustics.co.uk
State New
Headers show

Commit Message

Iain Sandoe Nov. 13, 2010, 1:05 p.m. UTC
This synchronizes the (non-plugin) lto  switches in config/darwin.h  
with the same in gcc/gcc.c.
applied as obvious.
r166706
Iain
diff mbox

Patch

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 166704)
+++ gcc/ChangeLog	(working copy)
@@ -1,5 +1,10 @@ 
 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
 
+	* config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
+	switches.
+
+2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
+
 	* dwarf2out.c (macinfo_entry): New struct.
 	(output_comp_unit): Emit the section start label here and flag that we
 	will emit an info section.
Index: gcc/config/darwin.h
===================================================================
--- gcc/config/darwin.h	(revision 166703)
+++ gcc/config/darwin.h	(working copy)
@@ -170,12 +170,14 @@  extern GTY(()) int darwin_ms_struct;
 
 #define LINK_COMMAND_SPEC_A \
    "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
-    %(linker) %l %X %{d} %{s} %{t} %{Z} %{u*} \
+    %(linker) \
+    %{flto*:%<fcompare-debug*} \
+    %{flto*} \
+    %l %X %{d} %{s} %{t} %{Z} %{u*} \
     %{A} %{e*} %{m} %{r} \
     %{o*}%{!o:-o a.out} \
     %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
     %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \
-    %{flto} %{fwhopr} \
     %{fopenmp|ftree-parallelize-loops=*: \
       %{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s; : -lgomp } } \
     %{!nostdlib:%{!nodefaultlibs: %(link_ssp) %G %L }} \