r208216 - in /branches/gomp-4_0-branch: gcc/c-f...
tschwinge@gcc.gnu.org
tschwinge@gcc.gnu.org
Fri Feb 28 09:20:00 GMT 2014
Author: tschwinge
Date: Fri Feb 28 09:20:55 2014
New Revision: 208216
URL: http://gcc.gnu.org/viewcvs?rev=208216&root=gcc&view=rev
Log:
Initial support for the OpenACC kernels construct in the C front end.
gcc/c-family/
* c-pragma.c (oacc_pragmas): Add "kernels".
* c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_KERNELS.
gcc/c/
* c-parser.c (OACC_KERNELS_CLAUSE_MASK): New macro definition.
(c_parser_oacc_kernels): New function.
(c_parser_omp_construct): Handle PRAGMA_OACC_KERNELS.
* c-tree.h (c_finish_oacc_kernels): New prototype.
* c-typeck.c (c_finish_oacc_kernels): New function.
gcc/testsuite/
* c-c++-common/goacc-gomp/nesting-fail-1.c: Extend for OpenACC
kernels construct.
* c-c++-common/goacc/clauses-fail.c: Likewise.
* c-c++-common/goacc/data-clause-duplicate-1.c: Likewise.
* c-c++-common/goacc/deviceptr-1.c: Likewise.
* c-c++-common/goacc/nesting-fail-1.c: Likewise.
* c-c++-common/goacc/kernels-1.c: New file.
* gcc.dg/goacc/parallel-sb-1.c: Rename to...
* gcc.dg/goacc/sb-1.c: ... this new file, and extend for OpenACC
kernels and data constructs.
* gcc.dg/goacc/parallel-sb-2.c: Rename to...
* gcc.dg/goacc/sb-2.c: ... this new file, and extend for OpenACC
kernels and data constructs.
libgomp/
* testsuite/libgomp.oacc-c/goacc_kernels.c: New file.
* testsuite/libgomp.oacc-c/kernels-1.c: Likewise.
* testsuite/libgomp.oacc-c/parallel-1.c: Add one missing test.
Added:
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-1.c
branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/goacc/sb-1.c
branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/goacc/sb-2.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/goacc_kernels.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/kernels-1.c
- copied, changed from r208215, branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/parallel-1.c
Removed:
branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/goacc/parallel-sb-1.c
branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/goacc/parallel-sb-2.c
Modified:
branches/gomp-4_0-branch/gcc/c-family/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/c-family/c-pragma.c
branches/gomp-4_0-branch/gcc/c-family/c-pragma.h
branches/gomp-4_0-branch/gcc/c/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/c/c-parser.c
branches/gomp-4_0-branch/gcc/c/c-tree.h
branches/gomp-4_0-branch/gcc/c/c-typeck.c
branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc-gomp/nesting-fail-1.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/clauses-fail.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/data-clause-duplicate-1.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/deviceptr-1.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/nesting-fail-1.c
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/parallel-1.c
More information about the Gcc-cvs
mailing list