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>
Thu, 10 Mar 2022 18:43:50 +0000 (18:43 +0000)
commit7c2ac3cebd5d41441e38142fca7ba5206f0d0027
treef6e255d60d1c958bb888101ed1b34fcbccff7232
parent4602a494e94835f693a9230adb69ce92249ebf15
Fix multiple issue in the testcase allocate-1.f90.

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/testsuite/libgomp.fortran/allocate-1.f90