[Bug debug/101947] [12 Regression] broken LTO bootstrap in get_base_type_offset at dwarf2out.c:4330

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 7 13:43:54 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:81e9178fe7f8bae4609619b1195765b14eef35b7

commit r12-3383-g81e9178fe7f8bae4609619b1195765b14eef35b7
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Sep 7 15:41:49 2021 +0200

    Fix PR debug/101947

    This is the recent LTO bootstrap failure with Ada enabled.  The compiler
now
    generates DW_OP_deref_type for a unit of the Ada front-end, which means
that
    the offset of base types in the CU must be computed during early DWARF too.

    gcc/
            PR debug/101947
            * dwarf2out.c (mark_base_types): New overloaded function.
            (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
            as the compilation unit, and call move_marked_base_types afterward.


More information about the Gcc-bugs mailing list