]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin] Fix lto options.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 3 Sep 2019 19:02:01 +0000 (19:02 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 3 Sep 2019 19:02:01 +0000 (19:02 +0000)
These had been changed in gcc/gcc.c without being synchronised
to config/darwin.h leading to some fails.

2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-22 Iain Sandoe <iain@sandoe.co.uk>

* config/darwin.h (LINK_COMMAND_SPEC_A): Update lto options
to match gcc/gcc.c.

From-SVN: r275347

gcc/ChangeLog
gcc/config/darwin.h

index df0d7b2e46be44f4d2a420289c95db91597d9b7d..0b1ff3181ac330ab2fc23ae9b60372b9eb1027aa 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline
+       2018-08-22 Iain Sandoe <iain@sandoe.co.uk>
+
+       * config/darwin.h (LINK_COMMAND_SPEC_A): Update lto options
+       to match gcc/gcc.c.
+
 2019-09-02  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
index 8bb79a445d783701c3710570d43fc659f6e2e3dc..ca8dc9b4eedd29783ba7863e8de60ced103bfe9c 100644 (file)
@@ -176,7 +176,7 @@ extern GTY(()) int darwin_ms_struct;
     %(linker)" \
     LINK_PLUGIN_SPEC \
     "%{flto*:%<fcompare-debug*} \
-    %{flto*} \
+     %{flto} %{fno-lto} %{flto=*} \
     %l " LINK_COMPRESS_DEBUG_SPEC \
    "%X %{s} %{t} %{Z} %{u*} \
     %{e*} %{r} \