Add 'gcc/tree.cc:user_omp_clause_code_name' [PR65095]
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 17 Feb 2022 11:46:57 +0000 (12:46 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Sat, 12 Mar 2022 10:05:29 +0000 (11:05 +0100)
commit828335beb77676acffb5911e575672cb55beb2e9
treefc053dc2a1bb8517efff2aa6c4377278644e2a17
parent72c243017dee611bf3c32ea7bfad6ac538021aaf
Add 'gcc/tree.cc:user_omp_clause_code_name' [PR65095]

Re PR65095 "Adapt OpenMP diagnostic messages for OpenACC", move C/C++
front end 'gcc/c-family/c-omp.cc:c_omp_map_clause_name' to generic
'gcc/tree.cc:user_omp_clause_code_name' .  No functional change.

PR other/65095
gcc/
* tree-core.h (user_omp_claus_code_name): Declare function.
* tree.cc (user_omp_clause_code_name): New function.
gcc/c/
* c-typeck.cc (handle_omp_array_sections_1)
(c_oacc_check_attachments): Call 'user_omp_clause_code_name'
instead of 'c_omp_map_clause_name'.
gcc/cp/
* semantics.cc (handle_omp_array_sections_1)
(cp_oacc_check_attachments): Call 'user_omp_clause_code_name'
instead of 'c_omp_map_clause_name'.
gcc/c-family/
* c-common.h (c_omp_map_clause_name): Remove.
* c-omp.cc (c_omp_map_clause_name): Remove.
gcc/c-family/c-common.h
gcc/c-family/c-omp.cc
gcc/c/c-typeck.cc
gcc/cp/semantics.cc
gcc/tree-core.h
gcc/tree.cc