[PATCH] D35756: [mips] Switch asm to __asm__ for non-GNU compiles.

Stephen Hines via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 13:25:58 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308922: [mips] Switch asm to __asm__ for non-GNU compiles. (authored by srhines).

Repository:
  rL LLVM

https://reviews.llvm.org/D35756

Files:
  compiler-rt/trunk/lib/builtins/clear_cache.c


Index: compiler-rt/trunk/lib/builtins/clear_cache.c
===================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c
+++ compiler-rt/trunk/lib/builtins/clear_cache.c
@@ -41,7 +41,7 @@
      * 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35756.107955.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170724/3d7f0c1e/attachment.bin>


More information about the llvm-commits mailing list