Przeglądaj źródła

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 11 lat temu
rodzic
commit
f7db1709ab
1 zmienionych plików z 2 dodań i 0 usunięć
  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