diff options
Diffstat (limited to 'packages/gcc/4.9.4/0034-c++17-build-failure.patch')
-rw-r--r-- | packages/gcc/4.9.4/0034-c++17-build-failure.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/gcc/4.9.4/0034-c++17-build-failure.patch b/packages/gcc/4.9.4/0034-c++17-build-failure.patch new file mode 100644 index 00000000..cc56acab --- /dev/null +++ b/packages/gcc/4.9.4/0034-c++17-build-failure.patch @@ -0,0 +1,17 @@ +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-4.9.4/gcc/reload.h 2022-01-01 15:51:43.293254281 -0800 ++++ gcc-4.9.4/gcc/reload.h 2022-01-01 15:51:58.437424873 -0800 +@@ -166,7 +166,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; |