https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71114
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 38495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38495&action=edit assembly for linux case Here's the asm for the case from my build, although I don't expect it'll help much if you can't reproduce it.