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 29, 2024
1 parent 010e70a commit 9de12a5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ fi
if ! [ -f "${gcc_tarball}" ]; then
wget --no-verbose 'https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz' --output-document="${gcc_tarball}"
tar --directory="$(dirname "${gcc_directory}")" --extract --file="${gcc_tarball}"

patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-x.patch"
fi

sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h"
Expand Down
24 changes: 24 additions & 0 deletions patches/0001-x.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 0ebd237ffbcd42a4941aad4821dfe346bb914f40 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Wed, 29 May 2024 19:19:24 +0200
Subject: [PATCH] x

---
libgcc/config/rs6000/t-linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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

-HOST_LIBGCC2_CFLAGS += -mlong-double-128
+# HOST_LIBGCC2_CFLAGS += -mlong-double-128

# This is a way of selecting -mcmodel=small for ppc64, which gives
# smaller and faster libgcc code. Directly specifying -mcmodel=small
--
2.36.6

2 changes: 1 addition & 1 deletion powerpc-unknown-linux-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare packages=()

declare extra_configure_flags=''
declare extra_configure_flags='--disable-decimal-float --without-long-double-128 gcc_cv_target_ldbl128=no libgcc_cv_powerpc_float128=no'

declare triplet='powerpc-unknown-linux-musl'

Expand Down

0 comments on commit 9de12a5

Please sign in to comment.