1 https://reviews.llvm.org/D68045
3 --- src/llvm-project/compiler-rt/lib/builtins/atomic.c.orig 2019-09-09 18:30:53 UTC
4 +++ src/llvm-project/compiler-rt/lib/builtins/atomic.c
5 @@ -51,9 +51,11 @@ static const long SPINLOCK_MASK = SPINLOCK_COUNT - 1;
6 ////////////////////////////////////////////////////////////////////////////////
9 -#include <machine/atomic.h>
11 #include <sys/types.h>
12 +#include <machine/atomic.h>
15 typedef struct _usem Lock;
16 __inline static void unlock(Lock *l) {
17 __c11_atomic_store((_Atomic(uint32_t) *)&l->_count, 1, __ATOMIC_RELEASE);
18 --- src/llvm-project/compiler-rt/lib/builtins/clear_cache.c.orig 2019-09-09 18:30:53 UTC
19 +++ src/llvm-project/compiler-rt/lib/builtins/clear_cache.c
20 @@ -23,8 +23,10 @@ uintptr_t GetCurrentProcess(void);
23 #if defined(__FreeBSD__) && defined(__arm__)
24 -#include <machine/sysarch.h>
26 #include <sys/types.h>
27 +#include <machine/sysarch.h>
31 #if defined(__NetBSD__) && defined(__arm__)
32 @@ -32,8 +34,10 @@ uintptr_t GetCurrentProcess(void);
35 #if defined(__OpenBSD__) && defined(__mips__)
36 -#include <machine/sysarch.h>
38 #include <sys/types.h>
39 +#include <machine/sysarch.h>
43 #if defined(__linux__) && defined(__mips__)