]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR103097] tolerate reg-stack cross-block malformed asms
authorAlexandre Oliva <oliva@adacore.com>
Thu, 9 Dec 2021 02:37:15 +0000 (23:37 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 9 Dec 2021 02:37:15 +0000 (23:37 -0300)
commitaf93386ffc18ca6c7d1949751ff97cc6ce092b2c
treea1fd06c35251dd11712a91dbcb4961dfe46af283
parent50e8b0c9bca6cdc57804f860ec5311b641753fbb
[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.
gcc/reg-stack.c
gcc/testsuite/gcc.target/i386/pr103097.c [new file with mode: 0644]