re PR target/84828 (ICE in verify_flow_info at gcc/cfghooks.c:265)
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Mar 2018 08:04:54 +0000 (09:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Mar 2018 08:04:54 +0000 (09:04 +0100)
commitfc31d739fb9feeadfeb28cf795530cd1d1be2d54
tree368a65daa6856675d76a602635cf7073a9d88ebb
parent639e8522c050cd9b814bc1a085f38b0418a8759a
re PR target/84828 (ICE in verify_flow_info at gcc/cfghooks.c:265)

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.

From-SVN: r258476
gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr84828.C [new file with mode: 0644]