summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2022-09-26 16:58:08 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2022-09-26 16:58:08 +0100
commit22f4ab2d200f605441cdd2b49ec9c97d43eb11c9 (patch)
tree900238f342a45d6c899cad578d58546336ffe5b9 /sysdeps/posix
parentc02e29a0ba47d636281e1a026444a1a0a254aa12 (diff)
downloadglibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.tar.gz
glibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.tar.xz
glibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.zip
Use atomic_exchange_release/acquire
Rename atomic_exchange_rel/acq to use atomic_exchange_release/acquire
since these map to the standard C11 atomic builtins.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/libc_fatal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c
index 270238495d..e8e582e0cf 100644
--- a/sysdeps/posix/libc_fatal.c
+++ b/sysdeps/posix/libc_fatal.c
@@ -137,8 +137,8 @@ __libc_message (const char *fmt, ...)
 
 	  /* We have to free the old buffer since the application might
 	     catch the SIGABRT signal.  */
-	  struct abort_msg_s *old = atomic_exchange_acq (&__abort_msg,
-							 buf);
+	  struct abort_msg_s *old = atomic_exchange_acquire (&__abort_msg,
+							     buf);
 	  if (old != NULL)
 	    __munmap (old, old->size);
 	}