[Bug c/89704] New: [7/8/9 Regression] ICE in add_const_value_attribute, at dwarf2out.c:19685

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Mar 13 17:26:00 GMT 2019


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

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

Started with gcc-6, compiles with gcc-5 :


$ cat z1.c
int f ()
{
  L1: L2:;
  static int i = (long) && L1 - (long) && L2;
  static int j = (long) && L1 - (long) && L2;
  return i;
}


$ gcc-9-20190310 -c z1.c -O2
$ gcc-9-20190310 -c z1.c -O0 -g
$
$ gcc-9-20190310 -c z1.c -O2 -g
z1.c:7:1: internal compiler error: in add_const_value_attribute, at
dwarf2out.c:19685
    7 | }
      | ^
0x83cd86 add_const_value_attribute
        ../../gcc/dwarf2out.c:19685
0x83cfd2 tree_add_const_value_attribute
        ../../gcc/dwarf2out.c:20393
0x83d7b5 optimize_location_into_implicit_ptr
        ../../gcc/dwarf2out.c:30105
0x83d7b5 resolve_addr
        ../../gcc/dwarf2out.c:30509
0x83d663 resolve_addr
        ../../gcc/dwarf2out.c:30591
0x83d663 resolve_addr
        ../../gcc/dwarf2out.c:30591
0x858e5f dwarf2out_finish
        ../../gcc/dwarf2out.c:31340


More information about the Gcc-bugs mailing list