https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70164
--- Comment #26 from Christophe Lyon <clyon at gcc dot gnu.org> --- For what CPU did you configure GCC? With today's trunk I still see the same code as in comment #24. I can get the same code as you have in comment #25 if I force -mcpu=cortex-a9. The bug report is about cortex-m0, so you either need to configure GCC --with-cpu=cortex-m0 or use -mcpu=cortex-m0