[compiler-rt] r227907 - Remove invalid const qualifier for r0, since it is written by svc.
Stephen Hines
srhines at google.com
Mon Feb 2 17:35:40 PST 2015
Author: srhines
Date: Mon Feb 2 19:35:39 2015
New Revision: 227907
URL: http://llvm.org/viewvc/llvm-project?rev=227907&view=rev
Log:
Remove invalid const qualifier for r0, since it is written by svc.
Summary: This causes an invalid lvalue error when building for Android.
Reviewers: danalbert
Reviewed By: danalbert
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D7306
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=227907&r1=227906&r2=227907&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Mon Feb 2 19:35:39 2015
@@ -97,7 +97,7 @@ void __clear_cache(void *start, void *en
sysarch(ARM_SYNC_ICACHE, &arg);
#elif defined(__ANDROID__)
- const register int start_reg __asm("r0") = (int) (intptr_t) start;
+ register int start_reg __asm("r0") = (int) (intptr_t) start;
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;
More information about the llvm-commits
mailing list