Page 2 of 2

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Fri Jan 25, 2019 1:10 pm
by Giovanni
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

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Mon Feb 25, 2019 9:03 am
by rew
Giovanni wrote:... the compiler bug, ....
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167


Giovanni wrote: there is no easy way to workaround this.
What about 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...

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Mon Feb 25, 2019 11:22 am
by Giovanni
I have not found "better code" yet but I will add a warning suppression macro, good idea.

Giovanni

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Mon May 20, 2019 1:47 pm
by Giovanni
Apparently the problem has been fixed in repository: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167

Giovanni

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Mon May 20, 2019 7:00 pm
by electronic_eel
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+.

Re: Interesting Error on STM32F030K6 with remapped serial

Posted: Mon May 20, 2019 7:12 pm
by Giovanni
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