OSDN Git Service

libc: add guard for arm thumb2 asm
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 11 Jan 2014 18:48:42 +0000 (19:48 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 15 Jan 2014 09:01:25 +0000 (10:01 +0100)
Fixes gen_lowlevelrobustlock on thumb2

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/arm/bits/arm_asm.h

index 921c9a3..14d2634 100644 (file)
@@ -3,8 +3,10 @@
 #define _ARM_ASM_H
 
 #ifdef __thumb2__
+# ifdef __ASSEMBLER__
 .thumb
 .syntax unified
+# endif /* __ASSEMBLER__ */
 #define IT(t, cond) i##t cond
 #else
 /* XXX: This can be removed if/when we require an assembler that supports