File: unwind-chain-inclusion.diff

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,236,204 kB
  • sloc: cpp: 7,619,103; ansic: 1,433,921; asm: 1,058,734; python: 252,125; f90: 94,671; objc: 70,753; lisp: 42,813; pascal: 18,401; sh: 10,093; ml: 5,111; perl: 4,720; awk: 3,523; makefile: 3,397; javascript: 2,272; xml: 892; fortran: 770
file content (43 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Without this patch, the first local include of unwind.h might, with the 
# __has_include_next, try to include the one from the system.
# It might be /usr/include/clang/3.4/include/unwind.h
# Because of the #ifndef __CLANG_UNWIND_H, it might never include any declaration
# from the system. 

---
 clang/lib/Headers/unwind.h |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Index: llvm-toolchain-snapshot_21~++20250422102230+f541a3aad8e7/clang/lib/Headers/unwind.h
===================================================================
--- llvm-toolchain-snapshot_21~++20250422102230+f541a3aad8e7.orig/clang/lib/Headers/unwind.h
+++ llvm-toolchain-snapshot_21~++20250422102230+f541a3aad8e7/clang/lib/Headers/unwind.h
@@ -9,9 +9,6 @@
 
 /* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/
 
-#ifndef __CLANG_UNWIND_H
-#define __CLANG_UNWIND_H
-
 #if defined(__APPLE__) && __has_include_next(<unwind.h>)
 /* Darwin (from 11.x on) provide an unwind.h. If that's available,
  * use it. libunwind wraps some of its definitions in #ifdef _GNU_SOURCE,
@@ -39,6 +36,9 @@
 # endif
 #else
 
+#ifndef __CLANG_UNWIND_H
+#define __CLANG_UNWIND_H
+
 #include <stdint.h>
 
 #ifdef __cplusplus
@@ -327,6 +327,7 @@ _Unwind_Ptr _Unwind_GetTextRelBase(struc
 }
 #endif
 
+#endif /* __CLANG_UNWIND_H */
+
 #endif
 
-#endif /* __CLANG_UNWIND_H */