From 63b3d1358cb3709f8c29fb0216abac77e0238295 Mon Sep 17 00:00:00 2001 From: "Jacob.Bramley@arm.com" Date: Tue, 24 Jun 2014 11:26:48 +0000 Subject: [PATCH] ARM: Fix inline assembly (r21949) for Clang. Add a 'c' predicate to the immediate syscall number. This tells the compiler to omit the leading '#' that immediates usually have in ARM. The GNU assembler tolerates "ldr r7, =#1234" but Clang does not. BUG=V8:3403 LOG=N R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/356463004 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21963 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/arm/cpu-arm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/cpu-arm.cc b/src/arm/cpu-arm.cc index 78ab5f7..6412366 100644 --- a/src/arm/cpu-arm.cc +++ b/src/arm/cpu-arm.cc @@ -52,7 +52,7 @@ void CPU::FlushICache(void* start, size_t size) { // r0 = beg // r1 = end // r2 = flags (0) - " ldr r7, =%[scno]\n" // r7 = syscall number + " ldr r7, =%c[scno]\n" // r7 = syscall number " svc 0\n" " pop {r7}\n" -- 2.7.4