https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89684
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:45:28 2019 New Revision: 270731 URL: https://gcc.gnu.org/viewcvs?rev=270731&root=gcc&view=rev Log: Backported from mainline 2019-03-14 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-8-branch/gcc/testsuite/gcc.target/i386/pr89684.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/multiple_target.c branches/gcc-8-branch/gcc/testsuite/ChangeLog