re PR ipa/89684 (ICE in gsi_for_stmt, at gimple-iterator.c:613)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Mar 2019 13:05:34 +0000 (14:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Mar 2019 13:05:34 +0000 (14:05 +0100)
commit27814aed3462d6bdce3c653e5e66d5e58cf4a5e7
tree04ae155d33fa76c4c587c95722b0d0581de16022
parent87654f1813a0f582645f72d87f7fb8c78b92ee6a
re PR ipa/89684 (ICE in gsi_for_stmt, at gimple-iterator.c:613)

PR ipa/89684
* multiple_target.c (create_dispatcher_calls): Change
references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
In the node->iterate_referring loop, push *ref rather than ref, call
ref->remove_reference () and always pass 0 to iterate_referring.

* gcc.target/i386/pr89684.c: New test.

From-SVN: r269681
gcc/ChangeLog
gcc/multiple_target.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr89684.c [new file with mode: 0644]