Skip to content

Commit

Permalink
[wip] Update to GCC 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed May 10, 2024
1 parent 20861ce commit dd05255
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if ! [ -f "${gcc_tarball}" ]; then
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-Disable-libfunc-support-for-hppa-unknown-netbsd.patch"
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/0001-x.patch"
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk.patch"
fi

[ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build"
Expand Down
28 changes: 28 additions & 0 deletions patches/pk.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 7fea3508c485657a3e8f9af8c34452a9955a297a Mon Sep 17 00:00:00 2001
From: Your Name <[email protected]>
Date: Fri, 10 May 2024 20:16:43 +0200
Subject: [PATCH] x

---
libatomic/tas_n.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libatomic/tas_n.c b/libatomic/tas_n.c
index 4a01cd2..0e399ab 100644
--- a/libatomic/tas_n.c
+++ b/libatomic/tas_n.c
@@ -23,7 +23,10 @@
<http://www.gnu.org/licenses/>. */

#include "libatomic_i.h"
-
+int __atomic_test_and_set (void* a, int b)
+{
+ return 0:
+}

/* If we support the builtin, just use it. */
#if !DONE && SIZE(HAVE_ATOMIC_TAS)
--
2.36.6

0 comments on commit dd05255

Please sign in to comment.