]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix parse-dump-tree for OpenMP ALLOCATE clause
authorTobias Burnus <tobias@codesourcery.com>
Tue, 20 Jun 2023 11:46:11 +0000 (13:46 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 20 Jun 2023 11:49:54 +0000 (13:49 +0200)
commit99e3214f582b08b69b11b53eb3fc73b0919ef4f1
tree783e8cd7c3f2a08ecfcad144dfd6e5f6e73e9690
parent6f695bfd736c8cc4dd7a93f42f3574aa9f459163
Fortran: Fix parse-dump-tree for OpenMP ALLOCATE clause

Commit r14-1301-gd64e8e1224708e added u2.allocator to gfc_omp_namelist
for better readability and to permit to use namelist->expr for code
like the following:
  !$omp allocators allocate(align(32) : dt%alloc_comp)
    allocate (dt%alloc_comp(5))
  !$omp allocate(dt%alloc_comp2) align(64)
    allocate (dt%alloc_comp2(10))
However, for the parse-tree dump the change was incomplete.

gcc/fortran/ChangeLog:

* dump-parse-tree.cc (show_omp_namelist): Fix dump of the allocator
modifier of OMP_LIST_ALLOCATE.
gcc/fortran/dump-parse-tree.cc