mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 03:14:08 +08:00
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:
parent
982198d511
commit
45de56481a
@ -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.
|
||||
|
@ -20,6 +20,7 @@ contains
|
||||
|
||||
subroutine sub (n)
|
||||
integer :: n
|
||||
!$omp atomic
|
||||
s = s + n
|
||||
print '(A,i3)',"loop =",n
|
||||
end subroutine
|
||||
|
Loading…
Reference in New Issue
Block a user