[PATCH 1/3] Fix build error for Cortex-M3 build

Sergei Poselenov sposelenov at emcraft.com
Sat Nov 1 08:56:19 UTC 2014


commit 1ca3444a4df22ecf6257eb40aa79b69c6f153283
Author: Sergei Poselenov <sposelenov at emcraft.com>
Date:   Sun Oct 26 14:52:40 2014 +0400

    Fixed build error for Cortex-M3.
    
    Signed-off-by: Sergei Poselenov <sposelenov at emcraft.com>

diff --git a/libc/sysdeps/linux/arm/bits/arm_asm.h b/libc/sysdeps/linux/arm/bits/arm_asm.h
index 921c9a3..27d22bb 100644
--- a/libc/sysdeps/linux/arm/bits/arm_asm.h
+++ b/libc/sysdeps/linux/arm/bits/arm_asm.h
@@ -3,9 +3,11 @@
 #define _ARM_ASM_H
 
 #ifdef __thumb2__
+#ifdef __ASSEMBLER__
 .thumb
 .syntax unified
 #define IT(t, cond) i##t cond
+#endif /* __ASSEMBLER__ */
 #else
 /* XXX: This can be removed if/when we require an assembler that supports
    unified assembly syntax.  */




More information about the uClibc mailing list