coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libatomic / gload.c
index 3c8612597cde60e78fa8f0a88d5298f69042ed5f..98e1a7edb9de44aa23582b19f26ebe7b9d38395b 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, DEST, SRC, DONE)                      \
   if (C2(HAVE_ATOMIC_LDST_,N))                                 \
     {                                                          \
-      DEST = __atomic_load_n (SRC, smodel);                    \
+      DEST = __atomic_load_n (SRC, __ATOMIC_SEQ_CST);          \
       DONE;                                                    \
     }
 #else