Hi Ilmir! On Tue, 18 Mar 2014 16:37:24 +0400, Ilmir Usmanov <i.usma...@samsung.com> wrote: > This patch introduces support of OpenACC loop directive (and combined > directives) in C front-end up to GENERIC. Currently no clause is allowed.
> --- /dev/null > +++ b/gcc/testsuite/c-c++-common/goacc/loop-1.c > @@ -0,0 +1,89 @@ > +/* { dg-do compile } */ > + > +int test1() > +{ > + /* combined directives may be used*/ > + #pragma acc parallel loop > + for(i = 1; i < 10; i++) > + { > + } > + #pragma acc kernels loop > + for(i = 1; i < 10; i++) > + { > + } > + return 0; > +} > +/* { dg-excess-errors "directive not yet implemented" } */ > \ No newline at end of file I just realized that this is wrong usage of the dg-excess-errors directive, for this one will absorb *all* remaining errors, whereas you just wanted to mask out any »sorry, unimplemented: directive not yet implemented« ones. OK to fix as follows? commit f83fdbfbc52e360b89b31a822a645b7f0dcabc96 Author: Thomas Schwinge <tho...@codesourcery.com> Date: Thu Mar 20 11:04:12 2014 +0100 Replace dg-excess-errors usage with dg-prune-output. gcc/testsuite/ * c-c++-common/goacc/loop-1.c: Replace dg-excess-errors usage with dg-prune-output. diff --git gcc/testsuite/c-c++-common/goacc/loop-1.c gcc/testsuite/c-c++-common/goacc/loop-1.c index 4546520..b890f38 100644 --- gcc/testsuite/c-c++-common/goacc/loop-1.c +++ gcc/testsuite/c-c++-common/goacc/loop-1.c @@ -69,4 +69,4 @@ int test1() } return 0; } -/* { dg-excess-errors "directive not yet implemented" } */ \ No newline at end of file +/* { dg-prune-output "sorry, unimplemented: directive not yet implemented" } */ Grüße, Thomas
pgp7cwHIWTF5F.pgp
Description: PGP signature