From 2b972dfebb2e0e987c33fcf432cdfc0f8c9bbc1b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 25 Feb 2016 04:04:37 +0000 Subject: [PATCH] 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! llvm-svn: 261821 --- compiler-rt/lib/builtins/clear_cache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index ede7659..80bebd0 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -103,8 +103,9 @@ void __clear_cache(void *start, void *end) { 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(); } -- 2.7.4