Commit 45de5648 by H.J. Lu Committed by H.J. Lu

Make 's' atomic

2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r155615
parent 982198d5
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.
......
......@@ -20,6 +20,7 @@ contains
subroutine sub (n)
integer :: n
!$omp atomic
s = s + n
print '(A,i3)',"loop =",n
end subroutine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment