[all-commits] [llvm/llvm-project] dd33f9: [libc] Make the errno macro resolve to the thread ...
Siva Chandra via All-commits
all-commits at lists.llvm.org
Fri Mar 4 09:30:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd33f9cdef9f6209aa34713e1417f4a2e24e5ca6
https://github.com/llvm/llvm-project/commit/dd33f9cdef9f6209aa34713e1417f4a2e24e5ca6
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2022-03-04 (Fri, 04 Mar 2022)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/api.td
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/__llvm-libc-common.h
M libc/spec/llvm_libc_ext.td
M libc/src/__support/CMakeLists.txt
M libc/src/__support/FPUtil/CMakeLists.txt
M libc/src/__support/File/CMakeLists.txt
M libc/src/errno/CMakeLists.txt
R libc/src/errno/__errno_location.cpp
R libc/src/errno/__errno_location.h
A libc/src/errno/errno.cpp
M libc/src/errno/llvmlibc_errno.h
M libc/src/fcntl/linux/CMakeLists.txt
M libc/src/math/generic/CMakeLists.txt
M libc/src/signal/linux/CMakeLists.txt
M libc/src/sys/mman/linux/CMakeLists.txt
M libc/src/sys/stat/linux/CMakeLists.txt
M libc/src/threads/linux/CMakeLists.txt
M libc/src/time/CMakeLists.txt
M libc/src/unistd/linux/CMakeLists.txt
M libc/test/loader/linux/CMakeLists.txt
M libc/test/src/__support/File/CMakeLists.txt
M libc/test/src/errno/CMakeLists.txt
M libc/test/src/math/CMakeLists.txt
M libc/test/src/signal/CMakeLists.txt
M libc/test/src/sys/mman/linux/CMakeLists.txt
M libc/test/src/threads/CMakeLists.txt
Log Message:
-----------
[libc] Make the errno macro resolve to the thread local variable directly.
With modern architectures having a thread pointer and language supporting
thread locals, there is no reason to use a function intermediary to access
the thread local errno value.
The entrypoint corresponding to errno has been replaced with an object
library as there is no formal entrypoint for errno anymore.
Reviewed By: jeffbailey, michaelrj
Differential Revision: https://reviews.llvm.org/D120920
More information about the All-commits
mailing list