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

            Bug ID: 89498
           Summary: [8/9 Regression] ICE in AT_loc_list, at
                    dwarf2out.c:4871
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects several testsuite cases at -O1+.
Changed between 20181111 and 20181118 :


$ cat pr71078-2.c
#include <math.h>

float f1(float x)
{
  float t1 = fabsf (x);
  float t2 = t1 / x;
  return t2;
}


$ gcc-9-20181111 -c pr71078-2.c -O2 -gdwarf-5 -gsplit-dwarf
$
$ gcc-9-20190224 -c pr71078-2.c -O0 -gdwarf-5 -gsplit-dwarf
$
$ gcc-9-20190224 -c pr71078-2.c -O2 -gdwarf-5 -gsplit-dwarf
pr71078-2.c:8:1: internal compiler error: in AT_loc_list, at dwarf2out.c:4871
    8 | }
      | ^
0x755b87 AT_loc_list
        ../../gcc/dwarf2out.c:4871
0x76c693 AT_loc_list
        ../../gcc/dwarf2out.c:9874
0x76c693 value_format
        ../../gcc/dwarf2out.c:9735
0x76c84c build_abbrev_table
        ../../gcc/dwarf2out.c:9094
0x76c9d8 build_abbrev_table
        ../../gcc/dwarf2out.c:9117
0x76c9d8 build_abbrev_table
        ../../gcc/dwarf2out.c:9117
0x77060f output_comp_unit
        ../../gcc/dwarf2out.c:11034
0x797441 dwarf2out_finish
        ../../gcc/dwarf2out.c:31569

Reply via email to