]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix multiple issue in the testcase allocate-1.f90.
authorHafiz Abid Qadeer <abidh@codesourcery.com>
Mon, 31 Jan 2022 19:02:14 +0000 (19:02 +0000)
committerHafiz Abid Qadeer <abidh@codesourcery.com>
Tue, 8 Mar 2022 19:17:51 +0000 (19:17 +0000)
commit5aa5d41e16246f2b47e85ace0672c458dd52dd97
treeffe8adbea0a217ccfa5afbb64332f5c2f8f20417
parent52c37cc67c5c8793e36f8f273c5d7d6e46963c39
Fix multiple issue in the testcase allocate-1.f90.

This is backport of patch posted in
https://gcc.gnu.org/pipermail/gcc-patches/2022-February/589928.html

1. Thomas reported in
https://gcc.gnu.org/pipermail/gcc-patches/2022-January/589039.html
that this testcase is randomly failing. The problem was fixed pool
size which was exhausted when there were a lot of threads. Fixed it
by removing pool_size trait which causes default pool size to be used
which should be big enough.

2. Array indices have been changed to check the last element in the
array.

3. Remove a redundant assignment and move some code to better match
C testcase.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
trait.  Test last index in w and v array.  Remove redundant
assignment to V(1).  Move alignment checks at the end of
parallel region.
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/allocate-1.f90