https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83990
--- Comment #12 from Martin Jambor <jamborm at gcc dot gnu.org> --- Created attachment 43254 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43254&action=edit Lost location fix I'm testing this patch which does what Jakub suggested in comment #4. With the patch, -fno-ipa-sra has no effect on either the original testcase or the reduced one from comment 10.