aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-07-31 09:35:25 +0200
committerJakub Jelinek <jakub@redhat.com>2021-07-31 09:35:25 +0200
commit05bcef5a88b34dd13179cabbe902e9135cb40ffe (patch)
treea89441dc67c96a6c5a881c6fe2615a666f1963ce /gcc/tree-ssa-phiopt.c
parent91425e2adecd00091d7443104ecb367686e88663 (diff)
downloadgcc-05bcef5a88b34dd13179cabbe902e9135cb40ffe.zip
gcc-05bcef5a88b34dd13179cabbe902e9135cb40ffe.tar.gz
gcc-05bcef5a88b34dd13179cabbe902e9135cb40ffe.tar.bz2
openmp: Handle OpenMP directives in attribute syntax in attribute-declaration
Now that we parse attribute-declaration (outside of functions), the following patch handles OpenMP directives in its attribute(s). What needs handling incrementally is diagnose mismatching begin/end pair like [[omp::directive (declare target)]]; int a; #pragma omp end declare target or #pragma omp declare target int b; [[omp::directive (end declare target)]]; and handling declare simd/declare variant on declarations (function definitions and declarations), for those in two different spots. 2021-07-31 Jakub Jelinek <jakub@redhat.com> * parser.c (cp_parser_declaration): Handle OpenMP directives in attribute-declaration. * g++.dg/gomp/attrs-9.C: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions