re PR debug/87295 ([early debug] ICE with -ffat-lto-objects -fdebug-types-section -g)
authorRichard Biener <rguenther@suse.de>
Tue, 29 Jan 2019 08:12:02 +0000 (08:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Jan 2019 08:12:02 +0000 (08:12 +0000)
commit5ee41782266f1f7a8df3e7e711b4b1241badfe3b
tree83dc8df3d65ecc3b36cbc7256576e34f05d45a16
parent57f0d303848213c1d82437b8c444afda8b72ede0
re PR debug/87295 ([early debug] ICE with -ffat-lto-objects -fdebug-types-section -g)

2019-01-29  Richard Biener  <rguenther@suse.de>

PR debug/87295
* dwarf2out.c (collect_skeleton_dies): New helper.
(copy_decls_for_unworthy_types): Call it.
(build_abbrev_table): Assert we do not try to replace
DW_AT_signature refs with local refs.

* g++.dg/lto/pr87295_0.C: New testcase.

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