Try GCC 5.x, I will put a check on the compiler version before next release anyway.
The problem has not been fixed yet, not even in GCC 8.
Giovanni
Interesting Error on STM32F030K6 with remapped serial
Moderators: RoccoMarco, barthess
- 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: Interesting Error on STM32F030K6 with remapped serial
Giovanni wrote:... the compiler bug, ....
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167
What about this:Giovanni wrote: there is no easy way to workaround this.
* you take the compiler ASM output, fix it and include it in an "#if GCC_BUG_PRESENT" as an alternative to the better code. Leave the original in the #else...
- 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: Interesting Error on STM32F030K6 with remapped serial
I have not found "better code" yet but I will add a warning suppression macro, good idea.
Giovanni
Giovanni
- 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: Interesting Error on STM32F030K6 with remapped serial
Apparently the problem has been fixed in repository: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167
Giovanni
Giovanni
-
- Posts: 77
- Joined: Sat Mar 19, 2016 8:07 pm
- Been thanked: 17 times
Re: Interesting Error on STM32F030K6 with remapped serial
Unfortunately the other problem related to __builtin_return_address is still open and unfixed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656
So for the time being you still can't use a recent gcc for ChibiOS on Cortex-M0 / Cortex-M0+.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656
So for the time being you still can't use a recent gcc for ChibiOS on Cortex-M0 / Cortex-M0+.
- 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: Interesting Error on STM32F030K6 with remapped serial
I think it is a duplicate, it is the same error. Next releases should be fine and I will modify the check in the code.
Giovanni
Giovanni
Who is online
Users browsing this forum: No registered users and 14 guests