https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967
Matthijs Kooijman <matthijs at stdin dot nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthijs at stdin dot nl --- Comment #14 from Matthijs Kooijman <matthijs at stdin dot nl> --- I actually think this is a different problem from the fixed https://sourceware.org/bugzilla/show_bug.cgi?id=22502. Using gcc 8.2.1 and binutils 2.31.51.20181213 from the STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32), I can still reproduce this problem using the example from comment 11 (and also in an actual implementation using stm32duino). I also tested the example from the linked bug, which *is* indeed fixed, leading me to believe this is a different problem (or the fix is not complete yet). The example from this bug is a lot bigger than the one from 22502, so there is probably something in here that triggers this. Maybe that the weak implementation is defined in assembly rather than C?