re PR tree-optimization/90671 (ICE on valid code at -Os and above with -g enabled...
commit6992d6fbf2ffdb4a5c78604fbf33ae95956fffdd
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 May 2019 07:53:48 +0000 (31 09:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 May 2019 07:53:48 +0000 (31 09:53 +0200)
tree60a8f12d775717b56975226f009fb27e15718573
parent0eee8eaa834181720cfb4e360a1c69d77c74b552
re PR tree-optimization/90671 (ICE on valid code at -Os and above with -g enabled in gsi_split_seq_after, at gimple-iterator.c:345)

PR tree-optimization/90671
* tree-ssa-threadupdate.c (ssa_create_duplicates): If
template_block used to be empty on the first call, don't use
gsi_split_seq_after and gsi_insert_seq_after, but remember whole
seq with bb_seq and set it with set_bb_seq.

* gcc.dg/torture/pr90671.c: New test.

From-SVN: r271802
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr90671.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c