From 2f17adba4a8970e9f511a34d0216fff389b27974 Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Fri, 10 May 2024 21:21:20 -0300 Subject: [PATCH] [wip] Update to GCC 14.1.0 --- build.sh | 2 +- patches/pk.patch | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index dc5cbe1..1559bbf 100644 --- a/build.sh +++ b/build.sh @@ -79,7 +79,7 @@ if ! [ -f "${gcc_tarball}" ]; then patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-Fix-issues-with-fenv.patch" # patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-Revert___atomic_test_and_set_Fall_back_to_library,_not_non-atomic_code.patch" patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk.patch" - patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk2.patch" + #patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk2.patch" fi [ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build" diff --git a/patches/pk.patch b/patches/pk.patch index da84ace..8fd76e0 100644 --- a/patches/pk.patch +++ b/patches/pk.patch @@ -16,10 +16,10 @@ index 4a01cd2..148a12d 100644 #include "libatomic_i.h" +#if N == 1 -+bool __atomic_test_and_set (volatile void* a, int b) -+{ -+ return 0; -+} +extern bool __atomic_test_and_set (volatile void* a, int b) +{ + return 0; +} +#endif /* If we support the builtin, just use it. */