[compiler-rt] r308922 - [mips] Switch asm to __asm__ for non-GNU compiles.
Stephen Hines via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 13:25:08 PDT 2017
Author: srhines
Date: Mon Jul 24 13:25:08 2017
New Revision: 308922
URL: http://llvm.org/viewvc/llvm-project?rev=308922&view=rev
Log:
[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
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=308922&r1=308921&r2=308922&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Mon Jul 24 13:25:08 2017
@@ -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"
More information about the llvm-commits
mailing list