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 11, 2024
1 parent 3a3701e commit 2523ea6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ if ! [ -f "${gcc_tarball}" ]; then
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk.patch"
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk3.patch"
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk4.patch"
patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/aaaa.patch"


#patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk2.patch"
Expand Down
28 changes: 28 additions & 0 deletions patches/aaaa.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 01d3cd2624dcdb50545fc226548362af4e22c840 Mon Sep 17 00:00:00 2001
From: Your Name <[email protected]>
Date: Sat, 11 May 2024 04:25:41 +0200
Subject: [PATCH] x

---
libstdc++-v3/include/bits/atomic_base.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h
index dd36030..6f4228e 100644
--- a/libstdc++-v3/include/bits/atomic_base.h
+++ b/libstdc++-v3/include/bits/atomic_base.h
@@ -48,6 +48,11 @@

#include <bits/version.h>

+bool __not_atomic_test_and_set (volatile void* a, int b) __asm("__atomic_test_and_set")
+{
+ return 0;
+}
+
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
--
2.36.6

0 comments on commit 2523ea6

Please sign in to comment.