re PR lto/69133 (LTO segfault in lto_get_decl_name_mapping() on 483.xalancbmk with...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 Jan 2016 11:57:41 +0000 (12:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Jan 2016 11:57:41 +0000 (11:57 +0000)
commite9191ad3ab89826936060c5e13800ce6be4f650c
treef304db9cdc8550c316d6ea4709de8f5b53d0d35d
parent150be262b98a8601cbc470c789c5b7b0907ddfb4
re PR lto/69133 (LTO segfault in lto_get_decl_name_mapping() on 483.xalancbmk with -flto-partition=none)

PR lto/69133
* cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
assume that the node has body.
* cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
check.
* g++.dg/lto/pr69133_0.C: New testcase.
* g++.dg/lto/pr69133_1.C: New testcase.

From-SVN: r232552
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr69133_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr69133_1.C [new file with mode: 0644]