coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libatomic / gcas.c
index 235a0dff70fcf388d8360e61a2a7e9c93d36c61a..63a06c3def990ddaf9f6df13f073108b35eca931 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012 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).
@@ -32,7 +32,7 @@
 # define EXACT_INLINE(N)                                       \
   if (C2(HAVE_ATOMIC_CAS_,N))                                  \
     return __atomic_compare_exchange_n                         \
-      (PTR(N,mptr), PTR(N,eptr), *PTR(N,dptr), false, smodel, fmodel)
+      (PTR(N,mptr), PTR(N,eptr), *PTR(N,dptr), false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
 #else
 # define EXACT_INLINE(N)
 #endif