reduction3.f90: Change -2147483648 to -huge(i)-1 to avoid overflow.
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 8 Sep 2006 20:57:55 +0000 (20:57 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 8 Sep 2006 20:57:55 +0000 (20:57 +0000)
2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>

* testsuite/libgomp.fortran/reduction3.f90: Change
-2147483648 to -huge(i)-1 to avoid overflow.
* testsuite/libgomp.fortran/reduction4.f90: Change
Z'ffffffff' to not(0) to avoid overflow.

From-SVN: r116786

libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/reduction3.f90
libgomp/testsuite/libgomp.fortran/reduction4.f90

index bb0f3b0a20e188c4cd529d18c0d06a2d876240b8..62ed9e9353a2a7e4b85c6db72ff41600b9a91b34 100644 (file)
@@ -1,3 +1,10 @@
+2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       * testsuite/libgomp.fortran/reduction3.f90: Change
+       -2147483648 to -huge(i)-1 to avoid overflow.
+       * testsuite/libgomp.fortran/reduction4.f90: Change
+       Z'ffffffff' to not(0) to avoid overflow.
+
 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR libgomp/25938
index a0786eca00835e41d1db5d734cbea105d3756a40..89b9d1af695a928cd96c76a496f46b67da067fbe 100644 (file)
@@ -17,7 +17,7 @@
 
 !$omp parallel num_threads (3) private (n) reduction (.or.:v) &
 !$omp & reduction (max:i, ia, r, ra, d, da)
-!$ if (i .ne. -2147483648 .or. any (ia .ne. -2147483648)) v = .true.
+!$ if (i .ne. -huge(i)-1 .or. any (ia .ne. -huge(ia)-1)) v = .true.
 !$ if (r .ge. -1.0d38 .or. any (ra .ge. -1.0d38)) v = .true.
 !$ if (d .ge. -1.0d300 .or. any (da .ge. -1.0d300)) v = .true.
   n = omp_get_thread_num ()
index 5a5e852bea7905c14e619a2e90fc4b3a75a8d6e2..bb1ed0e209cf48e54a03b08c0969429a7d679dbf 100644 (file)
@@ -12,7 +12,7 @@
   ka = Z'05a5a5'
   v = .false.
   cnt = -1
-  x = Z'ffffffff'
+  x = not(0)
 
 !$omp parallel num_threads (3) private (n) reduction (.or.:v) &
 !$omp & reduction (iand:i, ia) reduction (ior:j, ja) reduction (ieor:k, ka)