summaryrefslogtreecommitdiff
path: root/packages/gcc/5.5.0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gcc/5.5.0')
-rw-r--r--packages/gcc/5.5.0/0035-c++17-build-failure.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/gcc/5.5.0/0035-c++17-build-failure.patch b/packages/gcc/5.5.0/0035-c++17-build-failure.patch
new file mode 100644
index 0000000..a99af49
--- /dev/null
+++ b/packages/gcc/5.5.0/0035-c++17-build-failure.patch
@@ -0,0 +1,21 @@
+Fixes
+
+.../gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
+
+Fixed upstream in GCC6+ in d57c99458933.
+
+---
+ gcc/reload.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/gcc/reload.h
++++ b/gcc/reload.h
+@@ -168,7 +168,7 @@
+ 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;