From 15cf700b415f6477fa4152904b8e28cfa501d206 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 14 May 2013 13:02:37 +0000 Subject: [PATCH 1/1] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181785 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Memory.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc index 72a8af621df..d56c9e4b381 100644 --- a/lib/Support/Unix/Memory.inc +++ b/lib/Support/Unix/Memory.inc @@ -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 { -- 2.34.1