OpenMP: C/C++ parse 'omp allocate'
authorTobias Burnus <tobias@codesourcery.com>
Wed, 9 Dec 2020 11:20:01 +0000 (12:20 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 9 Dec 2020 11:20:01 +0000 (12:20 +0100)
commitaa0432005f36f6ac51dc9dcecb717fe739d39b88
treee042d0b2699770fac5950e8f930c18a21b06a72b
parent85f0a4d98229203181014fb84a1e4f74813aab9e
OpenMP: C/C++ parse 'omp allocate'

gcc/c-family/ChangeLog:

* c-pragma.c (omp_pragmas): Add 'allocate'.
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.

gcc/c/ChangeLog:

* c-parser.c (c_parser_omp_allocate): New.
(c_parser_omp_construct): Call it.

gcc/cp/ChangeLog:

* parser.c (cp_parser_omp_allocate): New.
(cp_parser_omp_construct, cp_parser_pragma): Call it.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/allocate-5.c: New test.
gcc/c-family/c-pragma.c
gcc/c-family/c-pragma.h
gcc/c/c-parser.c
gcc/cp/parser.c
gcc/testsuite/c-c++-common/gomp/allocate-5.c [new file with mode: 0644]