diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-7.1/0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-7.1/0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.1/0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch b/meta/recipes-devtools/gcc/gcc-7.1/0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch deleted file mode 100644 index 165258b5d3..0000000000 --- a/meta/recipes-devtools/gcc/gcc-7.1/0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | From 4c07606bb77bbd30f02adb947d480516da3fa3f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 11 Jun 2017 10:09:13 -0700 | ||
4 | Subject: [PATCH] libsanitizer: Use stack_t instead of struct sigaltstack | ||
5 | |||
6 | https://reviews.llvm.org/D35246 | ||
7 | |||
8 | Upstream-Status: Submitted | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | libsanitizer/sanitizer_common/sanitizer_linux.cc | 4 ++-- | ||
13 | libsanitizer/sanitizer_common/sanitizer_linux.h | 6 +++--- | ||
14 | .../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | 3 ++- | ||
15 | 3 files changed, 7 insertions(+), 6 deletions(-) | ||
16 | |||
17 | |||
18 | Index: gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.h | ||
19 | =================================================================== | ||
20 | --- gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.h | ||
21 | +++ gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.h | ||
22 | @@ -21,17 +21,15 @@ | ||
23 | #include "sanitizer_platform_limits_posix.h" | ||
24 | |||
25 | struct link_map; // Opaque type returned by dlopen(). | ||
26 | -struct sigaltstack; | ||
27 | |||
28 | namespace __sanitizer { | ||
29 | // Dirent structure for getdents(). Note that this structure is different from | ||
30 | // the one in <dirent.h>, which is used by readdir(). | ||
31 | struct linux_dirent; | ||
32 | |||
33 | // Syscall wrappers. | ||
34 | uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count); | ||
35 | -uptr internal_sigaltstack(const struct sigaltstack* ss, | ||
36 | - struct sigaltstack* oss); | ||
37 | +uptr internal_sigaltstack(const void* ss, void* oss); | ||
38 | uptr internal_sigprocmask(int how, __sanitizer_sigset_t *set, | ||
39 | __sanitizer_sigset_t *oldset); | ||
40 | |||
41 | Index: gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.cc | ||
42 | =================================================================== | ||
43 | --- gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.cc | ||
44 | +++ gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_linux.cc | ||
45 | @@ -631,8 +631,7 @@ | ||
46 | } | ||
47 | #endif | ||
48 | |||
49 | -uptr internal_sigaltstack(const struct sigaltstack *ss, | ||
50 | - struct sigaltstack *oss) { | ||
51 | +uptr internal_sigaltstack(const void *ss, void *oss) { | ||
52 | return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss); | ||
53 | } | ||
54 | |||
55 | Index: gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | ||
56 | =================================================================== | ||
57 | --- gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | ||
58 | +++ gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | ||
59 | @@ -287,7 +287,7 @@ | ||
60 | |||
61 | // Alternate stack for signal handling. | ||
62 | InternalScopedBuffer<char> handler_stack_memory(kHandlerStackSize); | ||
63 | - struct sigaltstack handler_stack; | ||
64 | + stack_t handler_stack; | ||
65 | internal_memset(&handler_stack, 0, sizeof(handler_stack)); | ||
66 | handler_stack.ss_sp = handler_stack_memory.data(); | ||
67 | handler_stack.ss_size = kHandlerStackSize; | ||
68 | Index: gcc-7.1.0/libsanitizer/tsan/tsan_platform_linux.cc | ||
69 | =================================================================== | ||
70 | --- gcc-7.1.0/libsanitizer/tsan/tsan_platform_linux.cc | ||
71 | +++ gcc-7.1.0/libsanitizer/tsan/tsan_platform_linux.cc | ||
72 | @@ -288,7 +288,7 @@ | ||
73 | int ExtractResolvFDs(void *state, int *fds, int nfd) { | ||
74 | #if SANITIZER_LINUX && !SANITIZER_ANDROID | ||
75 | int cnt = 0; | ||
76 | - __res_state *statp = (__res_state*)state; | ||
77 | + struct __res_state *statp = (struct __res_state*)state; | ||
78 | for (int i = 0; i < MAXNS && cnt < nfd; i++) { | ||
79 | if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1) | ||
80 | fds[cnt++] = statp->_u._ext.nssocks[i]; | ||
81 | |||