https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80706
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41340&action=edit gcc8-pr80706.patch I came up with this (in addition to #c7). This removes one of the two useless stores in the original pr71245-1.c testcase and restores the above pr71245-1.c modification to what it used to look before (well, even better, as it reserves smaller stack).