Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Unified Diff: src/include/concurrency_ops.h

Issue 411803002: Fix for building ARM/linux using clang. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/include/concurrency_ops.h
diff --git a/src/include/concurrency_ops.h b/src/include/concurrency_ops.h
index 7943520907684216afa41e26b2738df64d2c5a29..e826e0f51209157ad74b6e2496d164f0d3d0bada 100644
--- a/src/include/concurrency_ops.h
+++ b/src/include/concurrency_ops.h
@@ -88,8 +88,9 @@ static INLINE void NaClFlushCacheForDoublyMappedCode(uint8_t *writable_addr,
* does both. For background, see:
* http://code.google.com/p/nativeclient/issues/detail?id=2443
*/
- __builtin___clear_cache(writable_addr, writable_addr + size);
- __builtin___clear_cache(executable_addr, executable_addr + size);
+ __builtin___clear_cache((char*)writable_addr, (char*)writable_addr + size);
Mark Seaborn 2014/07/23 19:13:41 What version of Clang did you test against? It lo
Sam Clegg 2014/07/23 19:21:52 clang is coming from the chrome tree: third_party/
Mark Seaborn 2014/07/24 18:45:35 Ah, the issue is that __clear_cache() and __builti
+ __builtin___clear_cache((char*)executable_addr,
+ (char*)executable_addr + size);
#else
/*
* Give an error in case we ever target a non-gcc compiler for ARM

Powered by Google App Engine
This is Rietveld 408576698