summaryrefslogtreecommitdiff
path: root/libc/src/threads
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2022-03-03 10:25:35 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2022-03-04 17:29:49 +0000
commitdd33f9cdef9f6209aa34713e1417f4a2e24e5ca6 (patch)
tree359a66607a5bdff22f635914d11e09cd405d5606 /libc/src/threads
parentfa8293bbc760ca3df27d30327dca94d903106d80 (diff)
[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
Diffstat (limited to 'libc/src/threads')
-rw-r--r--libc/src/threads/linux/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/threads/linux/CMakeLists.txt b/libc/src/threads/linux/CMakeLists.txt
index 6fdca98ebe84..f5ac139889e8 100644
--- a/libc/src/threads/linux/CMakeLists.txt
+++ b/libc/src/threads/linux/CMakeLists.txt
@@ -50,7 +50,7 @@ add_entrypoint_object(
libc.include.threads
libc.src.__support.common
libc.src.__support.OSUtil.osutil
- libc.src.errno.__errno_location
+ libc.src.errno.errno
libc.src.sys.mman.mmap
COMPILE_OPTIONS
-O3