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
Index: libgomp/ChangeLog =================================================================== --- libgomp/ChangeLog (Revision 212489) +++ libgomp/ChangeLog (Arbeitskopie) @@ -1,3 +1,8 @@ +2014-07-13 Tobias Burnus <bur...@net-b.de> + + * testsuite/libgomp.fortran/pr34020.f90: Make compile + with TS 18508/Fortran 2015 + 2014-07-06 Marek Polacek <pola...@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