diff options
| author | Siva Chandra Reddy <sivachandra@google.com> | 2022-03-03 10:25:35 +0000 |
|---|---|---|
| committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-03-04 17:29:49 +0000 |
| commit | dd33f9cdef9f6209aa34713e1417f4a2e24e5ca6 (patch) | |
| tree | 359a66607a5bdff22f635914d11e09cd405d5606 /libc/src/threads | |
| parent | fa8293bbc760ca3df27d30327dca94d903106d80 (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.txt | 2 |
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 |
