Declare __clear_cache.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 May 2013 13:02:37 +0000 (13:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 May 2013 13:02:37 +0000 (13:02 +0000)
GCC declares __clear_cache in the gnu modes (-std=gnu++98,
-std=gnu++11), but not in the strict modes (-std=c++98, -std=c++11). This patch
declares it and therefore fixes the build when using one of the strict modes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181785 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Memory.inc

index 72a8af621dfcbb4310738dc623c7e5a8a90a8e41..d56c9e4b381ae4fa5ab4d79178e5d871cb573999 100644 (file)
@@ -33,6 +33,7 @@
 #endif
 
 extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
+extern "C" void __clear_cache(char *, char*);
 
 namespace {