re PR ipa/61602 (ICE in lto1 on x86_64-linux-gnu in ipa_single_use, at ipa.c:1257)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 15 Dec 2014 06:19:51 +0000 (07:19 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 06:19:51 +0000 (06:19 +0000)
commitdea91a66ff51bb0f37db48baebc7e098947713e9
tree7d0f222bbf1aafe6ff3d8426db8aafe30396b616
parentf1ced6f5e7e78a6818c4820c4a5f103b74112f93
re PR ipa/61602 (ICE in lto1 on x86_64-linux-gnu in ipa_single_use, at ipa.c:1257)

PR ipa/61602
* gcc.dg/torture/pr61602.c: New testcase.

* cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
* ipa.c (set_writeonly_bit): Track if reference was removed.
(ipa_discover_readonly_nonaddressable_vars): Return true if any
references was removed.
* ipa-reference.c (propagate): Return TODO_remove_functions if
reference was removed.

From-SVN: r218731
gcc/cgraph.h
gcc/ipa-reference.c
gcc/ipa.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61602.c [new file with mode: 0644]