Update lang/rust to version 1.38.0
[dports.git] / lang / rust / files / extra-patch-arm-compiler-rt
1 https://reviews.llvm.org/D68045
2
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  ////////////////////////////////////////////////////////////////////////////////
7  #ifdef __FreeBSD__
8  #include <errno.h>
9 -#include <machine/atomic.h>
10 +// clang-format off
11  #include <sys/types.h>
12 +#include <machine/atomic.h>
13  #include <sys/umtx.h>
14 +// clang-format on
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);
21  #endif
22  
23  #if defined(__FreeBSD__) && defined(__arm__)
24 -#include <machine/sysarch.h>
25 +// clang-format off
26  #include <sys/types.h>
27 +#include <machine/sysarch.h>
28 +// clang-format on
29  #endif
30  
31  #if defined(__NetBSD__) && defined(__arm__)
32 @@ -32,8 +34,10 @@ uintptr_t GetCurrentProcess(void);
33  #endif
34  
35  #if defined(__OpenBSD__) && defined(__mips__)
36 -#include <machine/sysarch.h>
37 +// clang-format off
38  #include <sys/types.h>
39 +#include <machine/sysarch.h>
40 +// clang-format on
41  #endif
42  
43  #if defined(__linux__) && defined(__mips__)