aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-04-04 07:57:36 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-04-04 07:57:36 +0100
commit6480d86a84ad176452fa3b269570f372bcf84d6e (patch)
tree0b25146143c74aab5663580cb0d4298215e7cc51
parent8.3.0: allow -march=native override with -march=<arch> (diff)
downloadgcc-patches-6480d86a84ad176452fa3b269570f372bcf84d6e.tar.gz
gcc-patches-6480d86a84ad176452fa3b269570f372bcf84d6e.tar.bz2
gcc-patches-6480d86a84ad176452fa3b269570f372bcf84d6e.zip
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@gentoo.org>
-rw-r--r--8.3.0/gentoo/27_all_flto-make-all.patch31
-rw-r--r--8.3.0/gentoo/README.history1
2 files changed, 32 insertions, 0 deletions
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 <rguenther@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