From fb07cc1d8b46eac18cb3f68d16606050ea92f0d4 Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Thu, 30 May 2024 23:26:15 -0300 Subject: [PATCH] Update to GCC 14.1.0 --- build.sh | 6 +++++- patches/0001-x.patch | 27 +++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/build.sh b/build.sh index ed42632..feb41aa 100644 --- a/build.sh +++ b/build.sh @@ -156,9 +156,9 @@ make all --jobs make install declare -ra targets=( + 'powerpc-unknown-linux-musl' 's390x-unknown-linux-musl' 'powerpc64le-unknown-linux-musl' - 'powerpc-unknown-linux-musl' 'mips-unknown-linux-musl' 'mipsel-unknown-linux-musl' 'mips64-unknown-linux-musl' @@ -189,6 +189,10 @@ for target in "${targets[@]}"; do unlink "${sysroot_tarball}" + if [ "${triplet}" = 'powerpc-unknown-linux-musl' ]; then + patch --directory="${toolchain_directory}/${triplet}" --strip='1' --input="${workdir}/patches/0001-x.patch" + fi + [ -d "${binutils_directory}/build" ] || mkdir "${binutils_directory}/build" cd "${binutils_directory}/build" diff --git a/patches/0001-x.patch b/patches/0001-x.patch index dbed669..915b3fc 100644 --- a/patches/0001-x.patch +++ b/patches/0001-x.patch @@ -1,24 +1,23 @@ -From 0ebd237ffbcd42a4941aad4821dfe346bb914f40 Mon Sep 17 00:00:00 2001 +From 2e2c5a95bdd01baf0cb1c9b20363969baa42d16b Mon Sep 17 00:00:00 2001 From: Your Name -Date: Wed, 29 May 2024 19:19:24 +0200 +Date: Fri, 31 May 2024 04:20:13 +0200 Subject: [PATCH] x --- - libgcc/config/rs6000/t-linux | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + include/stddef.h | 2 ++ + 1 file changed, 2 insertions(+) -diff --git a/libgcc/config/rs6000/t-linux b/libgcc/config/rs6000/t-linux -index 500210d..e8afd82 100644 ---- a/libgcc/config/rs6000/t-linux -+++ b/libgcc/config/rs6000/t-linux -@@ -1,6 +1,6 @@ - SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-glibc.ver +diff --git a/include/stddef.h b/include/stddef.h +index dbf5a4a..fcd28fc 100644 +--- a/include/stddef.h ++++ b/include/stddef.h +@@ -16,4 +16,6 @@ --HOST_LIBGCC2_CFLAGS += -mlong-double-128 -+# HOST_LIBGCC2_CFLAGS += -mlong-double-128 + #define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 )) - # This is a way of selecting -mcmodel=small for ppc64, which gives - # smaller and faster libgcc code. Directly specifying -mcmodel=small ++typedef struct { long long __ll; long double __ld; } max_align_t; ++ + #endif -- 2.36.6