https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80102
Bug ID: 80102
Summary: ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: ppc64le-linux-gnu
Following test-case ICE with cross-compiler:
$ cat /tmp/tmp8e87gxzu.ii
class b
{
public:
float a;
b (float c)
{
for (int g; g < c;)
++a;
}
};
class d
{
public:
d (b);
};
main ()
{
b (1.0);
d e (0.0), f (1.0);
}
$ ppc64le-linux-gnu-g++ -fnon-call-exceptions -mminimal-toc -Os
/tmp/tmp8e87gxzu.ii
/tmp/tmp8e87gxzu.ii: In constructor ‘b::b(float)’:
/tmp/tmp8e87gxzu.ii:9:3: internal compiler error: in maybe_record_trace_start,
at dwarf2cfi.c:2330
}
^
0x9b1c1b maybe_record_trace_start
.././../gcc/dwarf2cfi.c:2330
0x9b4058 scan_trace
.././../gcc/dwarf2cfi.c:2512
0x9b487a create_cfi_notes
.././../gcc/dwarf2cfi.c:2666
0x9b487a execute_dwarf2_frame
.././../gcc/dwarf2cfi.c:3024
0x9b487a execute
.././../gcc/dwarf2cfi.c:3504