diff options
author | Paul-Antoine Arras <parras@baylibre.com> | 2025-01-06 16:06:43 +0100 |
---|---|---|
committer | Paul-Antoine Arras <parras@baylibre.com> | 2025-01-10 18:58:46 +0100 |
commit | b5a679898986ae22ffdec538374c5378c26a229f (patch) | |
tree | 6d14ba7a6f8c9d8365a5b1288e5d5966ae6f818e /gcc/tree-vectorizer.h | |
parent | 4c688399db12c509c081d52b8926ac6d7de6068c (diff) | |
download | gcc-b5a679898986ae22ffdec538374c5378c26a229f.zip gcc-b5a679898986ae22ffdec538374c5378c26a229f.tar.gz gcc-b5a679898986ae22ffdec538374c5378c26a229f.tar.bz2 |
Do not call cp_parser_omp_dispatch directly in cp_parser_pragma
This is a followup to
ed49709acda OpenMP: C++ front-end support for dispatch + adjust_args.
The call to cp_parser_omp_dispatch only belongs in cp_parser_omp_construct. In
cp_parser_pragma, handle PRAGMA_OMP_DISPATCH by calling cp_parser_omp_construct.
gcc/cp/ChangeLog:
* parser.cc (cp_parser_pragma): Replace call to cp_parser_omp_dispatch
with cp_parser_omp_construct and check context.
gcc/testsuite/ChangeLog:
* g++.dg/gomp/dispatch-8.C: New test.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions