]> xenbits.xensource.com Git - unikraft/libs/compiler-rt.git/commit
Bring back the fix for GCC atomic builtins
authorAndrei Tatar <andrei@unikraft.io>
Wed, 24 May 2023 10:45:17 +0000 (13:45 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 1 Jun 2023 19:35:08 +0000 (19:35 +0000)
commit55977d515897e515d11e97c21abe2a8dfba291cf
tree8af131db4fc7fd95e8554585deda9f1f0686f4cf
parentccf186351de1ad27f52fd1d728e542f7cd9fe7f6
Bring back the fix for GCC atomic builtins

Commit d53cbfe6035f ("Update to LLVM 14.0.6") removed the patch that
adapts atomic.c to use GCC builtins instead of clang, however its
functionality is still required.
This change brings back this functionality in a cleaner and more
future-proof way, by providing a header that implements clang builtins
in terms of GCC ones.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #12
Makefile.uk
include/gcc_atomics.h [new file with mode: 0644]
patches/0001-Add-header-for-GCC-atomic-builtins.patch [new file with mode: 0644]