[Bug debug/84645] New: -flto -g0 at compile-time vs. -flto -g at link time ICEs in add_dwarf_attr, at dwarf2out.c:4353
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 1 08:44:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84645
Bug ID: 84645
Summary: -flto -g0 at compile-time vs. -flto -g at link time
ICEs in add_dwarf_attr, at dwarf2out.c:4353
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Keywords: lto
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Blocks: 82005
Target Milestone: ---
When building gfortran.dg/namelist_69.f90 with -flto -g0 and linking it with
-flto -g we end up ICEing at link-time:
/space/rguenther/src/svn/early-lto-debug/gcc/testsuite/gfortran.dg/namelist_69.f90:
In function ‘test2’:
/space/rguenther/src/svn/early-lto-debug/gcc/testsuite/gfortran.dg/namelist_69.f90:232:
internal compiler error: in add_dwarf_attr, at dwarf2out.c:4353
0x98bc53 add_dwarf_attr
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:4353
0x98c55a add_AT_die_ref
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:4730
0x9b7ee0 add_type_attribute
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:21383
0x9bda80 gen_variable_die
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:23539
0x9c5a67 gen_decl_die
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:26158
0x9c3fe0 process_scope_var
/space/rguenther/src/svn/early-lto-debug/gcc/dwarf2out.c:25614
this sort-of blocks PR82005 which forces -g0 at compile-time (sth usually
isn't what people do).
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82005
[Bug 82005] [8 regression] early lto debug creates invalid assembly on Darwin
More information about the Gcc-bugs
mailing list