On Wed, Oct 21, 2015 at 11:59:03AM -0400, Nathan Sidwell wrote: > Hi, > in preparing a patch set of the OpenACC execution model for trunk, I > discovered some broken tests in the testsuite. We were failing to diagnose > some incorrectly nested loops, and that led to ICEs in my patch set. > > This patch implements a check for openacc loop directives, checking that > they are immediately inside one of: > 1) another openacc loop > 2) an openacc offload region > 3) an openacc routine > > The broken tests are amended with the now expected diagnostic. > > tested on x86_64-linux-gnu with nvptx accelerator. > > ok for trunk?
This is ok for trunk. > 2015-10-21 Nathan Sidwell <nat...@codesourcery.com> > > gcc/ > * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop > nesting. > > testsuite/ > * c-c++-common/goacc/clauses-fail.c: Adjust errors. > * c-c++-common/goacc/sb-1.c: Adjust errors. > * c-c++-common/goacc/sb-3.c: Adjust errors. > * c-c++-common/goacc/loop-1.c: Adjust errors. > * c-c++-common/goacc/nesting-1.c: Adjust errors. > * c-c++-common/goacc-gomp/nesting-fail-1.c: Adjust errors. > * c-c++-common/goacc-gomp/nesting-1.c: Adjust errors. Jakub