summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2017-07-24 20:25:08 +0000
committerStephen Hines <srhines@google.com>2017-07-24 20:25:08 +0000
commitaba18768f47988fea3dfed047da36b86ca88de54 (patch)
treedb90d9fdb6e2cb5bfc4f2679991717e0503cf2b9 /compiler-rt/lib/builtins
parent0a26c5738dec4b98bf8016406713c36806e34dd4 (diff)
downloadbcm5719-llvm-aba18768f47988fea3dfed047da36b86ca88de54.tar.gz
bcm5719-llvm-aba18768f47988fea3dfed047da36b86ca88de54.zip
[mips] Switch asm to __asm__ for non-GNU compiles.
Summary: Using asm works fine for gnu11, but fails if the compiler uses C11. Switch to the more consistent __asm__, since that is what the rest of the source is using. Reviewers: petarj Reviewed By: petarj Subscribers: llvm-commits, sdardis, arichardson, pirama Differential Revision: https://reviews.llvm.org/D35756 llvm-svn: 308922
Diffstat (limited to 'compiler-rt/lib/builtins')
-rw-r--r--compiler-rt/lib/builtins/clear_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c
index 37c5fbe7dc9..af4ca619ad1 100644
--- a/compiler-rt/lib/builtins/clear_cache.c
+++ b/compiler-rt/lib/builtins/clear_cache.c
@@ -41,7 +41,7 @@ uintptr_t GetCurrentProcess(void);
* clear_mips_cache - Invalidates instruction cache for Mips.
*/
static void clear_mips_cache(const void* Addr, size_t Size) {
- asm volatile (
+ __asm__ volatile (
".set push\n"
".set noreorder\n"
".set noat\n"
OpenPOWER on IntegriCloud