This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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)
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Nov 2015 08:13:21 +0000
- Subject: [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)
- Auto-submitted: auto-generated
- References: <bug-68403-4 at http dot gcc dot gnu dot org/bugzilla/>
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
...