aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:45:27 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:45:27 +0100
commit10274189de219a51faaa6e59a3805f1b18804fe4 (patch)
treec82cbd6af3d75b90b6b1680328f2467f8400bdd1
parent10.2.0: backport ICE on invalid function declarations (diff)
downloadgcc-patches-10274189de219a51faaa6e59a3805f1b18804fe4.tar.gz
gcc-patches-10274189de219a51faaa6e59a3805f1b18804fe4.tar.bz2
gcc-patches-10274189de219a51faaa6e59a3805f1b18804fe4.zip
5.5.0: tweak to build against gcc-11
One new patch: + 104_all_gcc-c++17.patch: avoid use of '++' on 'bool'. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--5.5.0/gentoo/40_all_gcc-c++17.patch12
-rw-r--r--5.5.0/gentoo/README.history3
2 files changed, 15 insertions, 0 deletions
diff --git a/5.5.0/gentoo/40_all_gcc-c++17.patch b/5.5.0/gentoo/40_all_gcc-c++17.patch
new file mode 100644
index 0000000..d940d4c
--- /dev/null
+++ b/5.5.0/gentoo/40_all_gcc-c++17.patch
@@ -0,0 +1,12 @@
+Fix compatibility with c++17
+--- a/gcc/reload.h
++++ b/gcc/reload.h
+@@ -168,7 +168,7 @@ struct target_reload {
+ value indicates the level of indirect addressing supported, e.g., two
+ means that (MEM (MEM (REG n))) is also valid if (REG n) does not get
+ a hard register. */
+- bool x_spill_indirect_levels;
++ unsigned char x_spill_indirect_levels;
+
+ /* True if caller-save has been reinitialized. */
+ bool x_caller_save_initialized_p;
diff --git a/5.5.0/gentoo/README.history b/5.5.0/gentoo/README.history
index 421682a..57f94a8 100644
--- a/5.5.0/gentoo/README.history
+++ b/5.5.0/gentoo/README.history
@@ -1,3 +1,6 @@
+4 TODO
+ + 40_all_gcc-c++17.patch
+
3 29 May 2020
+ 38_all_libcpp-ar.patch
+ 39_all_whitespace-pa.patch