re PR lto/88130 (ICE in copy_function_or_variable, at lto-streamer-out.c:2315 since...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 2 Jan 2019 15:23:27 +0000 (16:23 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 2 Jan 2019 15:23:27 +0000 (15:23 +0000)
commit3b456f8da3721618ae706b0c4eaa438cccb0dbd2
tree92e1fef93fee27d675a892844d2a8c3cffe4f323
parent0588e288242a3b66b67e79d11e03828a0a728953
re PR lto/88130 (ICE in copy_function_or_variable, at lto-streamer-out.c:2315 since r260963)

PR lto/88130
* varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
false at WPA time when body was removed.
* g++.dg/torture/pr88130.C: New testcase.

From-SVN: r267515
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr88130.C [new file with mode: 0644]
gcc/varpool.c