[llvm] r181785 - Declare __clear_cache.

Rafael Espindola rafael.espindola at gmail.com
Tue May 14 06:02:37 PDT 2013


Author: rafael
Date: Tue May 14 08:02:37 2013
New Revision: 181785

URL: http://llvm.org/viewvc/llvm-project?rev=181785&view=rev
Log:
Declare __clear_cache.

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.

Modified:
    llvm/trunk/lib/Support/Unix/Memory.inc

Modified: llvm/trunk/lib/Support/Unix/Memory.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Memory.inc?rev=181785&r1=181784&r2=181785&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Memory.inc (original)
+++ llvm/trunk/lib/Support/Unix/Memory.inc Tue May 14 08:02:37 2013
@@ -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 {
 





More information about the llvm-commits mailing list