[Patch, Fortran] Fix atomic_ref with -fcoarray=lib
Tobias Burnus
burnus@net-b.de
Mon Jul 14 17:19:00 GMT 2014
If the atomic_ref VALUE argument is of a different kind than the ATOM
argument, the result was wrong with -fcoarray=lib. That showed up with
gfortran.dg/coarray/atomic_1.f90 - but for some reasons only with -m32.
The fix is to create a temporary variable in this case, what the patch does.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomic2.diff
Type: text/x-patch
Size: 2074 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140714/5d148d26/attachment.bin>
More information about the Fortran
mailing list