diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-06-07 13:09:40 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-07-05 10:14:47 -0300 |
commit | e070501d12b47e88c1ff8c313f887976fb578938 (patch) | |
tree | 8ee321cfb78050dde3c6e84e9a9da9b6eeaf0963 /sysdeps/unix/sysv/linux/arc | |
parent | af1aa36c617d72e80ff6b268bf927b6642d90823 (diff) | |
download | glibc-e070501d12b47e88c1ff8c313f887976fb578938.tar.gz glibc-e070501d12b47e88c1ff8c313f887976fb578938.tar.xz glibc-e070501d12b47e88c1ff8c313f887976fb578938.zip |
Replace __libc_multiple_threads with __libc_single_threaded
And also fixes the SINGLE_THREAD_P macro for SINGLE_THREAD_BY_GLOBAL, since header inclusion single-thread.h is in the wrong order, the define needs to come before including sysdeps/unix/sysdep.h. The macro is now moved to a per-arch single-threade.h header. The SINGLE_THREAD_P is used on some more places. Checked on aarch64-linux-gnu and x86_64-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arc')
-rw-r--r-- | sysdeps/unix/sysv/linux/arc/single-thread.h | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/arc/sysdep.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/arc/single-thread.h b/sysdeps/unix/sysv/linux/arc/single-thread.h new file mode 100644 index 0000000000..a5d3a2aaf4 --- /dev/null +++ b/sysdeps/unix/sysv/linux/arc/single-thread.h @@ -0,0 +1,2 @@ +#define SINGLE_THREAD_BY_GLOBAL +#include_next <single-thread.h> diff --git a/sysdeps/unix/sysv/linux/arc/sysdep.h b/sysdeps/unix/sysv/linux/arc/sysdep.h index 29b0e0161c..d0c1a78381 100644 --- a/sysdeps/unix/sysv/linux/arc/sysdep.h +++ b/sysdeps/unix/sysv/linux/arc/sysdep.h @@ -132,8 +132,6 @@ L (call_syscall_err): ASM_LINE_SEP \ #else /* !__ASSEMBLER__ */ -# define SINGLE_THREAD_BY_GLOBAL 1 - # if IS_IN (libc) extern long int __syscall_error (long int); hidden_proto (__syscall_error) |