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

--- Comment #8 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #7)
> (In reply to Jakub Jelinek from comment #6)
> > LLSDA labels are for EH support, this testcase doesn't really use exceptions
> > in any way, but it isn't compiled with -fno-exceptions; but that is the case
> > of most of the C++ tests in libgomp (I see only 6 OpenACC tests with it),
> > isn't it?
> 
> The test-case compiles with -fno-exceptions, but fails in execution here:
> ...
> 192         check (i >= 75 && i < 1945 && (i - 75) % 3 == 0);
> ...
> We'll have to analyze that.
> 

Hmm, for me that minimizes to:
...
extern "C" void abort ();

#pragma omp declare target
int results[2000];
#pragma omp end declare target

int
main ()
{
#pragma omp target teams map (always, tofrom: results)
  {
    results[75] = 1;
  }
  if (results[75] == 0)
    abort ();
}
...

Reply via email to