https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88878
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat dot
com
--- Comment #7 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Hello, @rguenth could you suggest what problem does -fdebug-types-section -flto
still have?
When I remove the use_debug_types's "&& !in_lto_p" part it looks to me as
working fine. (I haven't done any non-trivial debuginfo testing.)
Contents of the .debug_info section:
Compilation Unit @ offset 0x0:
Version: 4
<0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
<c> DW_AT_producer : (indirect string, offset: 0x0): GNU GIMPLE 10.2.1
20200723 (Red Hat 10.2.1-1) -mtune=generic -march=x86-64 -g -g -fno-openmp
-fno-openacc -fno-pie -fdebug-types-section -fltrans
<11> DW_AT_name : (indirect string, offset: 0xa8): <artificial>
Compilation Unit @ offset 0xc9:
Version: 4
<0><d4>: Abbrev Number: 11 (DW_TAG_compile_unit)
<d5> DW_AT_producer : (indirect string, offset: 0x35a): GNU C++14
10.2.1 20200723 (Red Hat 10.2.1-1) -mtune=generic -march=x86-64 -g
-fdebug-types-section -flto
<da> DW_AT_name : (indirect string, offset: 0x20e): main.C
<1><e6>: Abbrev Number: 12 (DW_TAG_class_type)
<e9> DW_AT_signature : signature: 0xf1df7e53d0fa1d2e
Compilation Unit @ offset 0x15a:
Version: 4
<0><165>: Abbrev Number: 11 (DW_TAG_compile_unit)
<166> DW_AT_producer : (indirect string, offset: 0x35a): GNU C++14
10.2.1 20200723 (Red Hat 10.2.1-1) -mtune=generic -march=x86-64 -g
-fdebug-types-section -flto
<16b> DW_AT_name : (indirect string, offset: 0x479): lib.C
Contents of the .debug_types section:
Compilation Unit @ offset 0x0:
Version: 4
Signature: 0xf1df7e53d0fa1d2e
Type Offset: 0x25
<0><17>: Abbrev Number: 1 (DW_TAG_type_unit)
<19> DW_AT_GNU_odr_signature: 0xddd94cb16fdd687a
<1><25>: Abbrev Number: 2 (DW_TAG_class_type)