https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103097
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alexandre Oliva <aol...@gcc.gnu.org>: https://gcc.gnu.org/g:af93386ffc18ca6c7d1949751ff97cc6ce092b2c commit r12-5853-gaf93386ffc18ca6c7d1949751ff97cc6ce092b2c Author: Alexandre Oliva <ol...@adacore.com> Date: Wed Dec 8 23:37:15 2021 -0300 [PR103097] tolerate reg-stack cross-block malformed asms The testcase shows malformed asms in one block confuse reg-stack logic in another block. Moving the resetting of any_malformed_asm to the end of the pass enables it to take effect throughout the affected function. for gcc/ChangeLog PR target/103097 * reg-stack.c (convert_regs_1): Move any_malformed_asm resetting... (reg_to_stack): ... here. for gcc/testsuite/ChangeLog PR target/103097 * gcc.target/i386/pr103097.c: New.