]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/gfortran.h
Fortran/OpenMP: align/allocator modifiers to the allocate clause
authorTobias Burnus <tobias@codesourcery.com>
Fri, 9 Dec 2022 20:45:37 +0000 (21:45 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 9 Dec 2022 20:45:37 +0000 (21:45 +0100)
commitb2e1c49b4a4592f9e96ae9ece8af7d0e6527b194
tree2ff8c340654035539084af7e525b77be0a350023
parent71b31d13757ae0f544651c29b113ccf120573760
Fortran/OpenMP: align/allocator modifiers to the allocate clause

gcc/fortran/ChangeLog:

* dump-parse-tree.cc (show_omp_namelist): Improve OMP_LIST_ALLOCATE
output.
* gfortran.h (struct gfc_omp_namelist): Add 'align' to 'u'.
(gfc_free_omp_namelist): Add bool arg.
* match.cc (gfc_free_omp_namelist): Likewise; free 'u.align'.
* openmp.cc (gfc_free_omp_clauses, gfc_match_omp_clause_reduction,
gfc_match_omp_flush): Update call.
(gfc_match_omp_clauses): Match 'align/allocate modifers in
'allocate' clause.
(resolve_omp_clauses): Resolve align.
* st.cc (gfc_free_statement): Update call
* trans-openmp.cc (gfc_trans_omp_clauses): Handle 'align'.

libgomp/ChangeLog:

* libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
item about 'align'; mark clause as 'Y' and directive as 'N'.
* testsuite/libgomp.fortran/allocate-2.f90: New test.
* testsuite/libgomp.fortran/allocate-3.f90: New test.
gcc/fortran/dump-parse-tree.cc
gcc/fortran/gfortran.h
gcc/fortran/match.cc
gcc/fortran/openmp.cc
gcc/fortran/st.cc
gcc/fortran/trans-openmp.cc
libgomp/libgomp.texi
libgomp/testsuite/libgomp.fortran/allocate-2.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/allocate-3.f90 [new file with mode: 0644]