https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121424
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 62072 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62072&action=edit patch which seems to work I have not ran the testsuite yet nor the gdb testsuite on this. But this works by correcting the location of the use and the simple_return. The only issue is that I not sure it works for the case where the outer function does not have return value (or a return value via reference).