]> git.ipfire.org Git - thirdparty/gcc.git/commit
debug/112718 - reset all type units with -ffat-lto-objects
authorRichard Biener <rguenther@suse.de>
Mon, 22 Jan 2024 14:42:59 +0000 (15:42 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 23 Jan 2024 07:05:08 +0000 (08:05 +0100)
commit7218f5050cb7163edae331f54ca163248ab48bfa
tree1245a81361c36cec0334afb7344213a78e80f6b7
parente861d76076e213d036f880b722a885918ee8cc58
debug/112718 - reset all type units with -ffat-lto-objects

When mixing -flto, -ffat-lto-objects and -fdebug-type-section we
fail to reset all type units after early output resulting in an
ICE when attempting to add then duplicate sibling attributes.

PR debug/112718
* dwarf2out.cc (dwarf2out_finish): Reset all type units
for the fat part of an LTO compile.

* gcc.dg/debug/pr112718.c: New testcase.
gcc/dwarf2out.cc
gcc/testsuite/gcc.dg/debug/pr112718.c [new file with mode: 0644]