This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/68403] FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/loop-auto-1.c -DACC_DEVICE_TYPE_host=1 -DACC_MEM_SHARED=1 (internal compiler error)


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

--- Comment #4 from vries at gcc dot gnu.org ---
Fails here in  gimplify_omp_for (in last assert):
...
      /* Handle OMP_FOR_COND.  */
      t = TREE_VEC_ELT (OMP_FOR_COND (for_stmt), i);
      gcc_assert (COMPARISON_CLASS_P (t));
      gcc_assert (TREE_OPERAND (t, 0) == decl);
...

The expression being gimplified:
...
(gdb) call debug_generic_expr (*expr_p)
#pragma acc loop worker
for (jx = 0; size / 64 > jx; jx++ )
  {
    {
      int ix;

      #pragma acc loop auto
        {
                    int ix;
          for (ix = 0; ix <= 63; ix++ )
            {
              <<cleanup_point <<< Unknown tree: expr_stmt
  (void) (*(ary + (sizetype) ((long unsigned int) (jx * 64 + ix) * 4)) = place
()) >>>>>
            }
        }
    }
  }
...

The t being checked by the assert:
...
(gdb) call debug_generic_expr (t)
size / 64 > jx
...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]