Browse Source

libc: add guard for arm thumb2 asm

Fixes gen_lowlevelrobustlock on thumb2

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 10 years ago
parent
commit
f7db1709ab
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/arm/bits/arm_asm.h

+ 2 - 0
libc/sysdeps/linux/arm/bits/arm_asm.h

@@ -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