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 6e226fa commit 2f17adb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions patches/pk.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 2f17adb

Please sign in to comment.