[compiler-rt] r261821 - builtins: adjust the clobbers list for android __clear_cache

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 20:04:37 PST 2016


Author: compnerd
Date: Wed Feb 24 22:04:37 2016
New Revision: 261821

URL: http://llvm.org/viewvc/llvm-project?rev=261821&view=rev
Log:
builtins: adjust the clobbers list for android __clear_cache

Adjust the clobbers list.  This use to work with older versions of gcc, but now
will error on newer versions (tested against 5.3) (as well as clang).

Patch by Tee Hao Wei!

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=261821&r1=261820&r2=261821&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Wed Feb 24 22:04:37 2016
@@ -103,8 +103,9 @@ void __clear_cache(void *start, void *en
          const register int end_reg __asm("r1") = (int) (intptr_t) end;
          const register int flags __asm("r2") = 0;
          const register int syscall_nr __asm("r7") = __ARM_NR_cacheflush;
-        __asm __volatile("svc 0x0" : "=r"(start_reg)
-            : "r"(syscall_nr), "r"(start_reg), "r"(end_reg), "r"(flags) : "r0");
+         __asm __volatile("svc 0x0"
+                          : "=r"(start_reg)
+                          : "r"(syscall_nr), "r"(start_reg), "r"(end_reg));
          if (start_reg != 0) {
              compilerrt_abort();
          }




More information about the llvm-commits mailing list