[Bug lto/84592] [openacc] lto1: ICE in input_varpool_node, at lto-cgraph.c:1424: for CSWTCH symbol
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 28 12:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |openmp
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Can you please help me how to run the single test on my machine w/o nvptx
> target?
This is the openmp variant:
...
/* { dg-additional-options "-ftree-switch-conversion" } */
#include <stdio.h>
int
main (void)
{
int n[1];
n[0] = 4;
#pragma omp target
{
int a = n[0];
switch (a & 3)
{
case 0: a = 4; break;
case 1: a = 3; break;
case 2: a = 2; break;
default:
a = 1; break;
}
n[0] = a;
}
printf ("n: %d\n", n[0]);
return 0;
}
...
This might also reproduce with intelmic.
More information about the Gcc-bugs
mailing list