https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953
--- Comment #12 from manuel.reimer at gmx dot de --- (In reply to Richard Earnshaw from comment #11) > We don't have your hardware and we don't have the full code to your > application, so we aren't going to be able to help you debug this. The hardware is basically something like a "reference application" for the STM32F103 available for a few bucks on ebay: http://www.ebay.com/itm/400608858461 The software is just the bootloader, I will need to flash new software directly via USB: https://github.com/tormodvolden/maple-bootloader/tree/unify_platforms > To take this any further you'll need to show us why you think the compiler > has mis-optimized your code. I won't be able to. I'm just a hobby programmer trying to help with this project: https://github.com/j1rie/IRMP_STM32/ with the goal to create a cheap USB based infrared remote control receiver. I'm able to compile the code, flash the binary and up to now I was able to provide the required information in this bug report. I don't understand in detail what the C code does and I don't know anything about how compilers and their optimization work.