aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/chcore_v6m.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/ARMCMx/chcore_v6m.h')
-rw-r--r--os/common/ports/ARMCMx/chcore_v6m.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/chcore_v6m.h b/os/common/ports/ARMCMx/chcore_v6m.h
index eb1193600..d62fc719a 100644
--- a/os/common/ports/ARMCMx/chcore_v6m.h
+++ b/os/common/ports/ARMCMx/chcore_v6m.h
@@ -126,6 +126,14 @@
#error "ChibiOS Cortex-M0 port not licensed"
#endif
+/* Handling a GCC problem impacting ARMv6-M.*/
+#if defined(__GNUC__) && !defined(PORT_IGNORE_GCC_VERSION_CHECK)
+#if __GNUC__ > 5
+#warning "This compiler has a know problem with Cortex-M0, see bugs: 88167, 88656."
+#warning "*** Use GCC version 5 or below ***"
+#endif
+#endif
+
/**
* @name Architecture and Compiler
* @{