[Bug debug/112718] [11/12/13 Regression] ICE: in add_dwarf_attr, at dwarf2out.cc:4501 with -g -fdebug-types-section -flto -ffat-lto-objects
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112718 --- Comment #5 from GCC Commits --- The releases/gcc-13 branch has been updated by Richard Biener : https://gcc.gnu.org/g:dd1948d467dc25b9b462b173ec40b95f6aa51356 commit r13-8477-gdd1948d467dc25b9b462b173ec40b95f6aa51356 Author: Richard Biener Date: Mon Jan 22 15:42:59 2024 +0100 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)
[Bug debug/112718] [11/12/13 Regression] ICE: in add_dwarf_attr, at dwarf2out.cc:4501 with -g -fdebug-types-section -flto -ffat-lto-objects
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112718 Richard Biener changed: What|Removed |Added Known to work||14.0 Priority|P3 |P2 Summary|[11/12/13/14 Regression]|[11/12/13 Regression] ICE: |ICE: in add_dwarf_attr, at |in add_dwarf_attr, at |dwarf2out.cc:4501 with -g |dwarf2out.cc:4501 with -g |-fdebug-types-section -flto |-fdebug-types-section -flto |-ffat-lto-objects |-ffat-lto-objects --- Comment #4 from Richard Biener --- Fixed on trunk sofar.