Cortex M-0 compilation with GCC > 5

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
elagil
Posts: 94
Joined: Tue Sep 19, 2017 7:38 am
Has thanked: 8 times
Been thanked: 7 times

Cortex M-0 compilation with GCC > 5

Post by elagil »

Hello,

compiling for Cortex M-0 I get the following warning:

Code: Select all

  
132 | # "*** Use GCC version 5 or below ***"
      |  warning^~~~~~~ "This compiler has a know problem with Cortex-M0, see bugs: 88167, 88656."


However, checking the bug tracker, these bugs seem to be fixed in the current release.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656

I use the latest arm gcc, which is dated after the closure of the bugs:
gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)

Would it make sense to remove the warning for the new revisions?

Best regards
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Cortex M-0 compilation with GCC > 5

Post by Giovanni »

Hi,

The latest released compiler, the one you have, still has the bug.

Giovanni
elagil
Posts: 94
Joined: Tue Sep 19, 2017 7:38 am
Has thanked: 8 times
Been thanked: 7 times

Re: Cortex M-0 compilation with GCC > 5

Post by elagil »

Ok, that is unfortunate. Thanks for the information!
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Cortex M-0 compilation with GCC > 5

Post by Giovanni »

Hi,

I just tried 9.3.1 2020q2 and looking at generated code it seems to be fine, LR register is preserved in the function prologue, later today I will run some tests and change the preprocessor check in the repository.

The new compiler also supports Cortex-A now, which is very nice.

Giovanni
Post Reply