]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp, fortran: Move udm field of gfc_omp_namelist into a new union
authorKwok Cheung Yeung <kcyeung@baylibre.com>
Thu, 12 Sep 2024 20:30:34 +0000 (21:30 +0100)
committerKwok Cheung Yeung <kcyeung@baylibre.com>
Thu, 17 Apr 2025 22:29:50 +0000 (23:29 +0100)
commit2afb6281a5a8711b82aa744e71c181bab6537e3c
treef0f2b093a2d12883733058cc852bd50f779dcdf5
parent3e3966d78461a4cfadfde079812e3d98335095b0
openmp, fortran: Move udm field of gfc_omp_namelist into a new union

This patch moves u2.udm into u3.udm.

This is necessary to avoid clashes when mappers are used together with
iterators, which uses u2.ns.

gcc/fortran/

* gfortran.h (struct gfc_omp_namelist): Move udm field into a new
union u3.
* match.cc (gfc_free_omp_namelist): Change references to u2.udm to
u3.udm.
* module.cc (load_omp_udms): Likewise.
(write_omp_udm): Likewise.
* openmp.cc (gfc_match_motion_var_list): Likewise.
(gfc_match_omp_clauses): Likewise.
(resolve_omp_clauses): Likewise.
(gfc_omp_instantiate_mapper): Likewise.
* trans-openmp.cc (gfc_trans_omp_clauses): Likewise.
(gfc_find_nested_mappers): Likewise.
gcc/fortran/ChangeLog.omp
gcc/fortran/gfortran.h
gcc/fortran/match.cc
gcc/fortran/module.cc
gcc/fortran/openmp.cc
gcc/fortran/trans-openmp.cc