commit:     6480d86a84ad176452fa3b269570f372bcf84d6e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  4 06:57:36 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Apr  4 06:57:36 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6480d86a

8.3.0: backport -flto=2 build failure on isl (all.c)

Reported-by: Fabio Coatti
Bug: https://gcc.gnu.org/PR89896
Bug: https://bugs.gentoo.org/682018
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 8.3.0/gentoo/27_all_flto-make-all.patch | 31 +++++++++++++++++++++++++++++++
 8.3.0/gentoo/README.history             |  1 +
 2 files changed, 32 insertions(+)

diff --git a/8.3.0/gentoo/27_all_flto-make-all.patch 
b/8.3.0/gentoo/27_all_flto-make-all.patch
new file mode 100644
index 0000000..abfe2f8
--- /dev/null
+++ b/8.3.0/gentoo/27_all_flto-make-all.patch
@@ -0,0 +1,31 @@
+https://gcc.gnu.org/PR89896
+https://bugs.gentoo.org/682018
+
+From e5e34c317c02b16cef2c6c71a18e4b1a358b626c Mon Sep 17 00:00:00 2001
+From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Wed, 3 Apr 2019 08:46:35 +0000
+Subject: [PATCH] 2019-04-03  Richard Biener  <rguent...@suse.de>
+
+       PR lto/89896
+       * lto-wrapper.c (run_gcc): Avoid implicit rules making
+       the all target phony.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@270113 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+--- a/gcc/lto-wrapper.c
++++ b/gcc/lto-wrapper.c
+@@ -1669,7 +1669,9 @@ cont:
+         struct pex_obj *pex;
+         char jobs[32];
+ 
+-        fprintf (mstream, "all:");
++        fprintf (mstream,
++                 ".PHONY: all\n"
++                 "all:");
+         for (i = 0; i < nr; ++i)
+           {
+             int j = ltrans_priorities[i*2 + 1];
+-- 
+2.21.0
+

diff --git a/8.3.0/gentoo/README.history b/8.3.0/gentoo/README.history
index c1e5bb1..1a755db 100644
--- a/8.3.0/gentoo/README.history
+++ b/8.3.0/gentoo/README.history
@@ -1,5 +1,6 @@
 1.1            TODO
        + 26_all_overridable_native.patch
+       + 27_all_flto-make-all.patch
 
 1.0            22 Feb 2019
        + 01_all_default-fortify-source.patch

Reply via email to