re PR ipa/58389 (g++ ICE in ipa_find_reference)
commita854f8566acaabcc7f1c5c6aa69c9c29b11c67ce
authorMartin Jambor <mjambor@suse.cz>
Thu, 12 Sep 2013 15:20:05 +0000 (12 17:20 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 12 Sep 2013 15:20:05 +0000 (12 17:20 +0200)
treef007460dfeaf58b393da5b3e56c4d0f470b53ff5
parent274ddab613ae4f3427eaf02859e5bbcceabbaadf
re PR ipa/58389 (g++ ICE in ipa_find_reference)

2013-09-12  Martin Jambor  <mjambor@suse.cz>

PR ipa/58389
* ipa-prop.c (remove_described_reference): Give up if the edge in the
reference descriptor is NULL.
(ipa_edge_removal_hook): If owning a reference descriptor, set its
edge to NULL.

testsuite/
* g++.dg/pr58389.C: New test.

From-SVN: r202532
gcc/ChangeLog
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr58389.C [new file with mode: 0644]