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

Postby RadaR » Wed Nov 06, 2019 8:49 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Cortex-M0 bugs: 88167, 88656

Postby Giovanni » Wed Nov 06, 2019 8:56 pm

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

Postby RadaR » Wed Nov 06, 2019 11:36 pm

thanks

User avatar
FXCoder
Posts: 384
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 180 times
Been thanked: 130 times

Re: Cortex-M0 bugs: 88167, 88656

Postby FXCoder » Sun Mar 22, 2020 10:38 am

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Cortex-M0 bugs: 88167, 88656

Postby Giovanni » Sun Mar 22, 2020 11:51 am

Thanks Bob,

Waiting the next ARM GCC release now...

Giovanni

User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

Re: Cortex-M0 bugs: 88167, 88656

Postby alex31 » Thu Mar 26, 2020 8:44 am

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: 212
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 7 times
Been thanked: 19 times

Re: Cortex-M0 bugs: 88167, 88656

Postby dflogeras » Wed Apr 22, 2020 12:59 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Cortex-M0 bugs: 88167, 88656

Postby Giovanni » Wed Apr 22, 2020 2:52 pm

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

Giovanni

dflogeras
Posts: 212
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 7 times
Been thanked: 19 times

Re: Cortex-M0 bugs: 88167, 88656

Postby dflogeras » Wed Apr 22, 2020 5:02 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Cortex-M0 bugs: 88167, 88656

Postby Giovanni » Sat Jun 06, 2020 7:51 am

Hi,

Change committed and fixed as bug #985.

Giovanni


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 8 guests