diff mbox

[libgomp,committed] F2015 fix for testsuite/libgomp.fortran/pr34020.f90 (was: [Patch, Fortran] Add library support for coarray's atomic intrinsics)

Message ID 53C22AC7.7060604@net-b.de
State New
Headers show

Commit Message

Tobias Burnus July 13, 2014, 6:44 a.m. UTC
Dominique Dhumieres wrote:
> This probably caused
> /opt/gcc/work/libgomp/testsuite/libgomp.fortran/pr34020.f90:16.24:
>          call atomic_add(lhs, rhs)
>                          1
> Error: ATOM argument at (1) to intrinsic function atomic_add shall be an integer of ATOMIC_INT_KIND

I have fixed the issue by using "external" - alternatively, one could 
compile it with -std=f2008 as it is new in the post-Fortran-2008 
Technical Specification (TS) 18508 (and will be in Fortran 2015).

Committed as Rev. 212490.

Tobias
diff mbox

Patch

Index: libgomp/ChangeLog
===================================================================
--- libgomp/ChangeLog	(Revision 212489)
+++ libgomp/ChangeLog	(Arbeitskopie)
@@ -1,3 +1,8 @@ 
+2014-07-13  Tobias Burnus  <burnus@net-b.de>
+
+	* testsuite/libgomp.fortran/pr34020.f90: Make compile
+	with TS 18508/Fortran 2015
+
 2014-07-06  Marek Polacek  <polacek@redhat.com>
 
 	PR c/6940
Index: libgomp/testsuite/libgomp.fortran/pr34020.f90
===================================================================
--- libgomp/testsuite/libgomp.fortran/pr34020.f90	(Revision 212489)
+++ libgomp/testsuite/libgomp.fortran/pr34020.f90	(Arbeitskopie)
@@ -7,6 +7,7 @@ 
       lhs = rhs + lhs
       end
 
+      external atomic_add
       real lhs, rhs
       integer i
       lhs = 0