From d3e2649b76cb65fea97c3359fe22155eca0556d6 Mon Sep 17 00:00:00 2001 From: krant Date: Sat, 11 May 2024 19:11:21 +0300 Subject: [PATCH] Fix GCC 11.4.0 build on hosts with GCC 14 --- patches/gcc-11.4.0/0010-libiberty-fix.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/gcc-11.4.0/0010-libiberty-fix.diff diff --git a/patches/gcc-11.4.0/0010-libiberty-fix.diff b/patches/gcc-11.4.0/0010-libiberty-fix.diff new file mode 100644 index 0000000..57ed9c0 --- /dev/null +++ b/patches/gcc-11.4.0/0010-libiberty-fix.diff @@ -0,0 +1,13 @@ +diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c +index 72b69d19c216..a8869e7c6395 100644 +--- a/libiberty/simple-object-mach-o.c ++++ b/libiberty/simple-object-mach-o.c +@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor, + /* Swap the indices, if required. */ + + for (i = 0; i < (nsects_in * 4); ++i) +- set_32 (&index[i], index[i]); ++ set_32 ((unsigned char *) &index[i], index[i]); + + sechdr_offset += sechdrsize; +