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

            Bug ID: 92163
           Summary: [10 Regression] ICE: Segmentation fault (in
                    bitmap_set_bit)
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openacc
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: prathamesh3492 at gcc dot gnu.org
  Target Milestone: ---

gcc-10.0.0-alpha20191020 snapshot (r277217) ICEs when compiling the following
testcase reduced from
libgomp/testsuite/libgomp.oacc-c-c++-common/mode-transitions.c w/ -O2
-fexceptions -fnon-call-exceptions -fopenacc:

void
xr (int *k7)
{
  int qa;

#pragma acc parallel
#pragma acc loop vector
  for (qa = 0; qa < 3; ++qa)
    if (qa % 2 != 0)
      k7[qa] = 0;
    else
      k7[qa] = 1;
}

% gcc-10.0.0-alpha20191020 -O2 -fexceptions -fnon-call-exceptions -fopenacc -c
ejmslzdp.c
during GIMPLE pass: ifcvt                                                       
ejmslzdp.c: In function 'xr._omp_fn.0':
ejmslzdp.c:6:9: internal compiler error: Segmentation fault
    6 | #pragma acc parallel
      |         ^~~
0xc78566 crash_signal
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/toplev.c:326
0x83e35f bitmap_set_bit(bitmap_head*, int)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/bitmap.c:953
0xd7076a delete_dead_or_redundant_assignment(gimple_stmt_iterator*, char
const*)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/tree-ssa-dse.c:919
0xcde420 ifcvt_local_dce
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/tree-if-conv.c:2978
0xcde420 tree_if_conversion(loop*, vec<gimple*, va_heap, vl_ptr>*)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/tree-if-conv.c:3094
0xcdf9ab execute
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/tree-if-conv.c:3171
0xcdf9ab execute
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191020/work/gcc-10-20191020/gcc/tree-if-conv.c:3158

Reply via email to