llvm-toolchain/debian/patches/declare_clear_cache.diff
Sylvestre Ledru 621afe854a * Sync recent changes from the 3.3 branch
* Integrate patch to fix FTBFS under IA64.
* Disable the usage of binutils-gold under armel. It currently fails with:
  "attempt to map 2752512 bytes at offset 2066666 exceeds size of file;
  the file may be corrupt"
2013-07-01 12:40:22 +00:00

14 lines
796 B
Diff

Index: llvm-toolchain-snapshot_3.4~svn185325/lib/Support/Unix/Memory.inc
===================================================================
--- llvm-toolchain-snapshot_3.4~svn185325.orig/lib/Support/Unix/Memory.inc 2013-07-01 13:28:43.000000000 +0200
+++ llvm-toolchain-snapshot_3.4~svn185325/lib/Support/Unix/Memory.inc 2013-07-01 13:28:43.000000000 +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)