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

            Bug ID: 88975
           Summary: ICE: Segmentation fault (in verify_ssa or gimple_code)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

1.

gcc-9.0.0-alpha20190120 snapshot (r268107) ICEs when compiling the following
snippet w/ -fopenmp -fchecking:

void
mr (int gy)
{
  int ij[gy];
  int sk;

#pragma omp taskloop reduction(+:ij)
  for (sk = 0; sk < 1; ++sk)
    {
    }
}

% gcc-9.0.0-alpha20190120 -fopenmp -c xsihfn9u.c
during GIMPLE pass: ssa
xsihfn9u.c: In function 'mr':
xsihfn9u.c:11:1: internal compiler error: Segmentation fault
   11 | }
      | ^
0xd701df crash_signal
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/toplev.c:326
0xf923dc verify_ssa(bool, bool)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-ssa.c:1050
0xc89d0d execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/passes.c:1984
0xc8ab0e execute_todo
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/passes.c:2031

2.

Compiling the above snippet w/ -fopenmp -fno-checking yields the following
instead:

% gcc-9.0.0-alpha20190120 -fopenmp -fno-checking -c xsihfn9u.c
during RTL pass: expand
xsihfn9u.c: In function 'mr':
xsihfn9u.c:2:1: internal compiler error: Segmentation fault
    2 | mr (int gy)
      | ^~
0xd701df crash_signal
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/toplev.c:326
0xf8db84 gimple_code
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/gimple.h:1689
0xf8db84 gimple_nop_p
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/gimple.h:6466
0xf8db84 ssa_undefined_value_p(tree_node*, bool)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-ssa.c:1295
0xf8db84 ssa_undefined_value_p(tree_node*, bool)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-ssa.c:1286
0xe218df get_undefined_value_partitions
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-outof-ssa.c:978
0xe218df remove_ssa_form
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-outof-ssa.c:1072
0xe218df rewrite_out_of_ssa(ssaexpand*)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/tree-outof-ssa.c:1306
0x912660 execute
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190120/work/gcc-9-20190120/gcc/cfgexpand.c:6314

Reply via email to