When I try to compile with LTO enabled I get this error:
Any idea what does this?
I'm compiling through the binaries used in ChibiStudio.
http://s29.postimg.org/idse1312d/problem.jpg
Chibios 3.0.0 gcc support
Moderators: RoccoMarco, lbednarz, tfAteba
Re: Chibios 3.0.0 gcc support
I too have discovered a strange LTO bug.
If LTO is on and I have optimization O0 everything works, but if I increase to O1 or O2 I get stuck in a osalDbgAssert in st.c as:

Any idea what's causing this? I've tried with -flto-partition=1to1, this does not help.
If LTO is on and I have optimization O0 everything works, but if I increase to O1 or O2 I get stuck in a osalDbgAssert in st.c as:

Any idea what's causing this? I've tried with -flto-partition=1to1, this does not help.