This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2db8a4d77a8 libs/libc/machine/arm: Include nuttx/config.h in
arch_mcount.S.
2db8a4d77a8 is described below
commit 2db8a4d77a8d30090d51ddba8cb0b2919ab84969
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Oct 8 23:35:35 2026 +0200
libs/libc/machine/arm: Include nuttx/config.h in arch_mcount.S.
arch_mcount.S selects the ARMv6-M code with CONFIG_ARCH_CORTEXM0 and
CONFIG_ARCH_CORTEXM23, but it did not include nuttx/config.h. So it
always assembled the Thumb-2 code, and CONFIG_PROFILE_MINI did not
build on Cortex-M0, M0+ and M23:
arch_mcount.S:48: Error: cannot honor width suffix -- `bic r1,r1,#1'
Include nuttx/config.h.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
libs/libc/machine/arm/arch_mcount.S | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libs/libc/machine/arm/arch_mcount.S
b/libs/libc/machine/arm/arch_mcount.S
index d9aa406d5a4..85a75e52b8d 100644
--- a/libs/libc/machine/arm/arch_mcount.S
+++ b/libs/libc/machine/arm/arch_mcount.S
@@ -18,6 +18,12 @@
*
****************************************************************************/
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <nuttx/config.h>
+
/****************************************************************************
* Public Functions
****************************************************************************/