]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make 's' atomic
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 4 Jan 2010 14:28:30 +0000 (14:28 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 4 Jan 2010 14:28:30 +0000 (06:28 -0800)
2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>

PR libgomp/42602
* libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.

From-SVN: r155615

libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/recursion1.f90

index 2dab2166d30df7a674f6649101d0b096a2aa1d10..2a5d3aeee76944bf102f7462fa66115031df9dd1 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR libgomp/42602
+       * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
+
 2010-01-03  Richard Guenther  <rguenther@suse.de>
 
        * testsuite/libgomp.fortran/recursion1.f90: New testcase.
index 0b7b2715fdd1b1e74456d48ec221970010ca0fb0..35cb8786e09778eb0100a2ab9ed01948ccf06db9 100644 (file)
@@ -20,6 +20,7 @@ contains
 
   subroutine sub (n)
     integer :: n
+!$omp atomic
     s = s + n
     print '(A,i3)',"loop =",n
   end subroutine