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

            Bug ID: 89944
           Summary: [7/8/9 Regression] ICE in mark_jump_label_1, at
                    jump.c:1152
           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: ---

Gives an ICE down to gcc-4.6, gcc-4.5 (and others) accept it :


$ cat z1.c
void buf ()
{
  __builtin_setjmp (buf);
  __builtin_longjmp (buf, 1);
}


$ gcc-9-20190331 -c z1.c -O0
$
$ gcc-9-20190331 -c z1.c -O2
during RTL pass: cse1
z1.c: In function 'buf':
z1.c:5:1: internal compiler error: in mark_jump_label_1, at jump.c:1152
    5 | }
      | ^
0x902146 mark_jump_label_1
        ../../gcc/jump.c:1152
0x901ec9 mark_jump_label_1
        ../../gcc/jump.c:1212
0x90243d mark_all_labels
        ../../gcc/jump.c:305
0x90243d rebuild_jump_labels_1
        ../../gcc/jump.c:74
0x115faa1 rest_of_handle_cse
        ../../gcc/cse.c:7687
0x115faa1 execute
        ../../gcc/cse.c:7721

Reply via email to