Page 1 of 2
Cortex-M0 bugs: 88167, 88656
Posted: Wed Nov 06, 2019 8:49 pm
by RadaR
os/common/ports/ARMCMx/chcore_v6m.hhave check for GCC version
/* 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
From 25.10.2019 this bugs was fixed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167Can you remove\updated this check in trunk version ?
Re: Cortex-M0 bugs: 88167, 88656
Posted: Wed Nov 06, 2019 8:56 pm
by Giovanni
It has been fixed on repositories but binary GCC distribution from ARM has still to include the fix, this will likely happen in next release.
The check cannot be removed, it needs to be updated but I need to know unaffected versions in each GCC branch.
Giovanni
Re: Cortex-M0 bugs: 88167, 88656
Posted: Wed Nov 06, 2019 11:36 pm
by RadaR
thanks
Re: Cortex-M0 bugs: 88167, 88656
Posted: Sun Mar 22, 2020 10:38 am
by FXCoder
Hi,
88167 &
88656 fixed on 2019-10-25 on all active branches.
GCC active branch releases subsequent to the fix...
GCC 7.5 [2019-11-14]
GCC 8.4 [2020-03-04]
GCC 9.3 [2020-03-12]
--
Bob
Re: Cortex-M0 bugs: 88167, 88656
Posted: Sun Mar 22, 2020 11:51 am
by Giovanni
Thanks Bob,
Waiting the next ARM GCC release now...
Giovanni
Re: Cortex-M0 bugs: 88167, 88656
Posted: Thu Mar 26, 2020 8:44 am
by alex31
For the early testers, a guy maintains a bleeding edge toolchain where one can fin latest gcc 9.3, gdb 9.1 :
http://www.freddiechopin.info/en/downlo ... -toolchainthere is precompiled binaries for windows, but not for linux where there is only a build script.
If someone is interested, here is a link to a linux X64 build that should work on ubuntu (and derivatives like mint) 18.04 and after :
arm-none-eabi-gcc-9.3I do not have M0 to test if bug is fixed, all i know is that it works for M4 (F4/F7), with significant lower binary size for c++ programs.
Alexandre
Re: Cortex-M0 bugs: 88167, 88656
Posted: Wed Apr 22, 2020 12:59 pm
by dflogeras
Giovanni,
In previous situations like this, I've had success doing something like the following:
Code: Select all
#if defined __GNUC__
#if ( __GNUC__ > 5 ) && ( __GNUC__ < 10 )
#define GCC_VERSION ( __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ )
#if ( __GNUC__ == 7 ) && ( GCC_VERSION >= 70500 )
#elif ( __GNUC__ == 8 ) && ( GCC_VERSION >= 80400 )
#elif ( __GNUC__ == 9 ) && ( GCC_VERSION >= 90300 )
#else
#warn "Warning about version"
#endif
#endif
#endif
Re: Cortex-M0 bugs: 88167, 88656
Posted: Wed Apr 22, 2020 2:52 pm
by Giovanni
I see, the problem right now is that the compiler is not yet released.
Giovanni
Re: Cortex-M0 bugs: 88167, 88656
Posted: Wed Apr 22, 2020 5:02 pm
by dflogeras
Yup, I just wanted to throw that out there for the future, in case it helps you save some time.
Best,
Dave
Re: Cortex-M0 bugs: 88167, 88656
Posted: Sat Jun 06, 2020 7:51 am
by Giovanni
Hi,
Change committed and fixed as bug #985.
Giovanni