Commit 81a424ae authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

criu/arch/arm/bitops.S: fix clang compile

clang-3.8 complains:

> criu/arch/arm/bitops.S:5:2: error: invalid instruction
>  strneb r1, [ip] @ assert word-aligned
>  ^

Apparently (see [1]) this is some old asm syntax, which, I guess,
was deliberately dropped from clang.

[1] https://sourceware.org/ml/libc-ports/2013-03/msg00095.html

Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Reviewed-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 905c4084
#include "common/asm/linkage.h" #include "common/asm/linkage.h"
.syntax unified
ENTRY(test_and_set_bit) ENTRY(test_and_set_bit)
ands ip, r1, #3 ands ip, r1, #3
strneb r1, [ip] @ assert word-aligned strbne r1, [ip] @ assert word-aligned
mov r2, #1 mov r2, #1
and r3, r0, #31 @ Get bit offset and r3, r0, #31 @ Get bit offset
mov r0, r0, lsr #5 mov r0, r0, lsr #5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment