Cortex-M0 bugs: 88167, 88656

Discussions and support about ChibiOS/RT, the free embedded RTOS.
RadaR
Posts: 19
Joined: Tue Sep 17, 2019 11:34 pm
Has thanked: 1 time

Cortex-M0 bugs: 88167, 88656

Post by RadaR »

os/common/ports/ARMCMx/chcore_v6m.h

have 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=88656
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167

Can you remove\updated this check in trunk version ?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Cortex-M0 bugs: 88167, 88656

Post 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
RadaR
Posts: 19
Joined: Tue Sep 17, 2019 11:34 pm
Has thanked: 1 time

Re: Cortex-M0 bugs: 88167, 88656

Post by RadaR »

thanks
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: Cortex-M0 bugs: 88167, 88656

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Cortex-M0 bugs: 88167, 88656

Post by Giovanni »

Thanks Bob,

Waiting the next ARM GCC release now...

Giovanni
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: Cortex-M0 bugs: 88167, 88656

Post 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 ... -toolchain

there 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.3

I 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
dflogeras
Posts: 232
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

Re: Cortex-M0 bugs: 88167, 88656

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Cortex-M0 bugs: 88167, 88656

Post by Giovanni »

I see, the problem right now is that the compiler is not yet released.

Giovanni
dflogeras
Posts: 232
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

Re: Cortex-M0 bugs: 88167, 88656

Post by dflogeras »

Yup, I just wanted to throw that out there for the future, in case it helps you save some time.

Best,
Dave
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Cortex-M0 bugs: 88167, 88656

Post by Giovanni »

Hi,

Change committed and fixed as bug #985.

Giovanni
Post Reply