From 6f6b40a94ff63797ba8a6e766386bcadc9bfbe5f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Mar 2022 17:03:50 +0100 Subject: [PATCH] toolchain/gcc: fix building gcc 5.5 on newer systems Signed-off-by: Felix Fietkau --- toolchain/gcc/patches/5.5.0/003-build_fix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 toolchain/gcc/patches/5.5.0/003-build_fix.patch diff --git a/toolchain/gcc/patches/5.5.0/003-build_fix.patch b/toolchain/gcc/patches/5.5.0/003-build_fix.patch new file mode 100644 index 000000000..9602cd3b1 --- /dev/null +++ b/toolchain/gcc/patches/5.5.0/003-build_fix.patch @@ -0,0 +1,11 @@ +--- 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;