coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libatomic / gexch.c
index 1999067df18b849d9fcd242ff9704d8bc0b56566..44745afa28d3424b7e2ea5f09abe6b99844c8c43 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2017 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth@redhat.com>.
 
    This file is part of the GNU Atomic Library (libatomic).
@@ -33,7 +33,7 @@
   if (C2(HAVE_ATOMIC_EXCHANGE_,N))                             \
     {                                                          \
       *PTR(N,rptr) = __atomic_exchange_n                       \
-       (PTR(N,mptr), *PTR(N,vptr), smodel);                    \
+       (PTR(N,mptr), *PTR(N,vptr), __ATOMIC_SEQ_CST);          \
       return;                                                  \
     }
 #else