]> 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>
Fri, 17 May 2024 09:33:30 +0000 (11:33 +0200)
commit1f41e8eef3da1d76c18fe1a93846054c53dc5a47
tree104069d091797faf2083c6a0d3b7b29fabee2325
parent9bad5cf9ae446b367f666176537eb76e94cc4448
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.

(cherry picked from commit 7218f5050cb7163edae331f54ca163248ab48bfa)
gcc/dwarf2out.cc
gcc/testsuite/gcc.dg/debug/pr112718.c [new file with mode: 0644]