aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/clang-0002-fix-unwind-header.patch
diff options
context:
space:
mode:
authorTravis Tilley <ttilley@gmail.com>2015-05-21 12:41:30 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:09:01 +0000
commit81d1b43c5af39e14cb91232c4afcb7839b96f5a1 (patch)
tree01d279a6a2c6859074d4b3045f851c2e36de13db /main/llvm/clang-0002-fix-unwind-header.patch
parent386a214b3a1b7586e4d37b94ae84d6830e159f52 (diff)
downloadaports-81d1b43c5af39e14cb91232c4afcb7839b96f5a1.tar.bz2
aports-81d1b43c5af39e14cb91232c4afcb7839b96f5a1.tar.xz
main/llvm: update patchset, switch to cmake, perform two-stage build with a minimal bootstrap compile of clang, add clang extras, update package list to split out clang documentation
Diffstat (limited to 'main/llvm/clang-0002-fix-unwind-header.patch')
-rw-r--r--main/llvm/clang-0002-fix-unwind-header.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/llvm/clang-0002-fix-unwind-header.patch b/main/llvm/clang-0002-fix-unwind-header.patch
new file mode 100644
index 0000000000..1b86de2c47
--- /dev/null
+++ b/main/llvm/clang-0002-fix-unwind-header.patch
@@ -0,0 +1,45 @@
+From 757d99457c9dffe5e7d9a300f14728ecaa8db868 Mon Sep 17 00:00:00 2001
+From: Travis Tilley <ttilley@gmail.com>
+Date: Mon, 27 Apr 2015 08:38:38 -0400
+Subject: [PATCH 2/8] fix unwind header inclusion
+
+---
+ lib/Headers/unwind.h | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h
+index 90aca16..ef96969 100644
+--- a/lib/Headers/unwind.h
++++ b/lib/Headers/unwind.h
+@@ -23,9 +23,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,
+@@ -53,6 +50,9 @@
+ # endif
+ #else
+
++#ifndef __CLANG_UNWIND_H
++#define __CLANG_UNWIND_H
++
+ #include <stdint.h>
+
+ #ifdef __cplusplus
+@@ -277,6 +277,7 @@ _Unwind_Ptr _Unwind_GetTextRelBase(struct _Unwind_Context *);
+ }
+ #endif
+
++#endif /* __CLANG_UNWIND_H */
++
+ #endif
+
+-#endif /* __CLANG_UNWIND_H */
+--
+2.1.4
+