diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-26 06:10:47 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-26 06:10:47 +0000 | 
| commit | b0c2a4437e69f555c65c562d846e2e7b239221bd (patch) | |
| tree | fb8f8a8610dea542314d683f1cb3212bb40ca865 /os/common | |
| parent | 3bb2244a3be7211e3bba6314b4f6dae0c1785d07 (diff) | |
| download | ChibiOS-b0c2a4437e69f555c65c562d846e2e7b239221bd.tar.gz ChibiOS-b0c2a4437e69f555c65c562d846e2e7b239221bd.tar.bz2 ChibiOS-b0c2a4437e69f555c65c562d846e2e7b239221bd.zip  | |
Added a version check for GCC.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12581 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/common')
| -rw-r--r-- | os/common/ports/ARMCMx/chcore_v6m.h | 8 | 
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
   * @{
  | 
