PR target/84828
commit48ef33f0d5d2a7e8cfd4ea1d68d8ac3c986ec0b9
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 08:04:54 +0000 (13 08:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 08:04:54 +0000 (13 08:04 +0000)
tree368a65daa6856675d76a602635cf7073a9d88ebb
parente88a62aeaf90c0299966a3fb8bfb4d8dab6d98af
PR target/84828
* reg-stack.c (change_stack): Change update_end var from int to
rtx_insn *, if non-NULL don't update just BB_END (current_block), but
also call set_block_for_insn on the newly added insns and rescan.

* g++.dg/ext/pr84828.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258476 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr84828.C [new file with mode: 0644]