summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-01-11 19:48:42 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-01-15 10:01:25 +0100
commitf7db1709ab9785302b00e9671f9c652f4fac6851 (patch)
treea69c417204b6abc2b0b144e78414738dbe258bed /libc/sysdeps
parente11ff4a4a0abfc0d2d5bc029f16d91ece969b82e (diff)
libc: add guard for arm thumb2 asm
Fixes gen_lowlevelrobustlock on thumb2 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/arm/bits/arm_asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/bits/arm_asm.h b/libc/sysdeps/linux/arm/bits/arm_asm.h
index 921c9a3c9..14d26341f 100644
--- a/libc/sysdeps/linux/arm/bits/arm_asm.h
+++ b/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