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
This commit is contained in:
H.J. Lu 2010-01-04 14:28:30 +00:00 committed by H.J. Lu
parent 982198d511
commit 45de56481a
2 changed files with 6 additions and 0 deletions

View 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.

View File

@ -20,6 +20,7 @@ contains
subroutine sub (n)
integer :: n
!$omp atomic
s = s + n
print '(A,i3)',"loop =",n
end subroutine