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

2021-09-07 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2021-09-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 --- Comment #10 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:81e9178fe7f8bae4609619b1195765b14eef35b7 commit r12-3383-g81e9178fe7f8bae4609619b1195765b14eef35b7 Author: Eric Botcazou Date:

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

2021-09-06 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 --- Comment #9 from Eric Botcazou --- Obvious kludge: diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 07a479f6382..fb436b8c77c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -19484,6 +19491,7 @@ loc_list_from_tree_1 (tree loc, int

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

2021-09-06 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 --- Comment #8 from Eric Botcazou --- The problem is that the dwarf2out_early_finish path does not finalize base types so calc_die_sizes cannot compute the size of DW_OP_deref_type: case DW_OP_deref_type: case DW_OP_GNU_deref_type:

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

2021-09-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 --- Comment #7 from Eric Botcazou --- It's the DW_AT_byte_size expression in: (gdb) p debug_dwarf_die (die) DIE 1041: DW_TAG_structure_type (0x739f06e0) abbrev id: 51 offset: 1041 mark: 1 DW_AT_name: "exp_dist__rpc_target"

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

2021-09-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947 Martin Liška changed: What|Removed |Added CC||jamborm at gcc dot gnu.org --- Comment