Skip to content

Commit

Permalink
Update to GCC 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed May 31, 2024
1 parent 5e67c62 commit fb07cc1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"
Expand Down
27 changes: 13 additions & 14 deletions patches/0001-x.patch
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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

0 comments on commit fb07cc1

Please sign in to comment.