]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Unify representation of name-list properties.
authorSandra Loosemore <sandra@codesourcery.com>
Sun, 19 Nov 2023 05:31:41 +0000 (05:31 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 19 Dec 2023 20:07:13 +0000 (20:07 +0000)
commit9b8fdcbf2105c65de231ea3db10aaf38e3f68530
treea7fb852317f2ccab48ca2c2222153328788f1f15
parent82b32adaa7f9cf3be71a9d41d80570b9efb4c2f0
OpenMP: Unify representation of name-list properties.

Previously, name-list properties specified as identifiers were stored
in the TREE_PURPOSE/OMP_TP_NAME slot, while those specified as strings
were stored in the TREE_VALUE/OMP_TP_VALUE slot.  This patch puts both
representations in OMP_TP_VALUE with a magic cookie in OMP_TP_NAME.

gcc/ChangeLog
* omp-general.h (OMP_TP_NAMELIST_NODE): New.
* omp-general.cc (omp_context_name_list_prop): Move earlier
in the file, and adjust for new representation.
(omp_check_context_selector): Adjust this too.
(omp_context_selector_props_compare): Likewise.

gcc/c/ChangeLog
* c-parser.cc (c_parser_omp_context_selector): Adjust for new
namelist property representation.

gcc/cp/ChangeLog
* parser.cc (cp_parser_omp_context_selector): Adjust for new
namelist property representation.
* pt.cc (tsubst_attribute): Likewise.

gcc/fortran/ChangeLog
* trans-openmp.cc (gfc_trans_omp_declare_varaint): Adjust for
new namelist property representation.
gcc/c/c-parser.cc
gcc/cp/parser.cc
gcc/cp/pt.cc
gcc/fortran/trans-openmp.cc
gcc/omp-general.cc
gcc/omp-general.h