summaryrefslogtreecommitdiff
path: root/debian/patches/declare_clear_cache.diff
diff options
context:
space:
mode:
authorsylvestre <sylvestre@670adf90-79fe-46c2-b027-9eb1e76e7c7d>2014-07-31 06:27:03 +0000
committersylvestre <sylvestre@670adf90-79fe-46c2-b027-9eb1e76e7c7d>2014-07-31 06:27:03 +0000
commit8f5fd9b75e8c96b32b0a64d8e6c9c46542a5d7c5 (patch)
tree6007592c92c0fabd80538f59aa08a73540efd919 /debian/patches/declare_clear_cache.diff
downloadllvm-toolchain-3.5-8f5fd9b75e8c96b32b0a64d8e6c9c46542a5d7c5.tar.gz
it is time to branch snapshot => 3.5
git-svn-id: svn://svn.debian.org/svn/pkg-llvm/llvm-toolchain/branches/3.5@1282 670adf90-79fe-46c2-b027-9eb1e76e7c7d
Diffstat (limited to 'debian/patches/declare_clear_cache.diff')
-rw-r--r--debian/patches/declare_clear_cache.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/declare_clear_cache.diff b/debian/patches/declare_clear_cache.diff
new file mode 100644
index 0000000..42491b9
--- /dev/null
+++ b/debian/patches/declare_clear_cache.diff
@@ -0,0 +1,13 @@
+Index: llvm-toolchain-snapshot_3.4~svn188990/lib/Support/Unix/Memory.inc
+===================================================================
+--- llvm-toolchain-snapshot_3.4~svn188990.orig/lib/Support/Unix/Memory.inc 2013-08-22 09:07:39.252608486 +0200
++++ llvm-toolchain-snapshot_3.4~svn188990/lib/Support/Unix/Memory.inc 2013-08-22 09:07:39.248608486 +0200
+@@ -336,7 +336,7 @@
+ // FIXME: Can we safely always call this for __GNUC__ everywhere?
+ const char *Start = static_cast<const char *>(Addr);
+ const char *End = Start + Len;
+- __clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
++ __builtin___clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
+ # elif defined(__mips__)
+ const char *Start = static_cast<const char *>(Addr);
+ # if defined(ANDROID)