re PR debug/86585 (ICE in gen_member_die, at dwarf2out.c:24935)
authorRichard Biener <rguenther@suse.de>
Fri, 20 Jul 2018 11:13:47 +0000 (11:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 20 Jul 2018 11:13:47 +0000 (11:13 +0000)
commitefe0e6cd21477033d1b62343f61fefa0fc4ea6d1
tree0235db53e067d1a79e09b22cca7388dc37b3423e
parent4e51aacb1c5b97b07438a62e7654507c6c7a9986
re PR debug/86585 (ICE in gen_member_die, at dwarf2out.c:24935)

2018-07-20  Richard Biener  <rguenther@suse.de>

PR debug/86585
* dwarf2out.c (dwarf2out_die_ref_for_decl): Test in_lto_p
to cover -flto-partition=none.

lto/
* lto.c (unify_scc): Before we throw away an SCC see if we
can amend prevailing single-entry SCC with debug refs.

* g++.dg/lto/pr86585_0.C: New testcase.
* g++.dg/lto/pr86585_1.C: Likewise.

From-SVN: r262901
gcc/ChangeLog
gcc/dwarf2out.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr86585_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr86585_1.C [new file with mode: 0644]