https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44952
--- Comment #19 from Sam James <sjames at gcc dot gnu.org> --- Is this one essentially fixed? I don't see a way of handling it for non-ELF and I doubt anyone really cares much about that for an optimisation like this.