[libc-commits] [PATCH] D120920: [libc] Make the errno macro resolve to the thread local variable directly.
    Siva Chandra via Phabricator via libc-commits 
    libc-commits at lists.llvm.org
       
    Thu Mar  3 10:21:35 PST 2022
    
    
  
sivachandra created this revision.
sivachandra added a reviewer: jeffbailey.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.
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.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D120920
Files:
  libc/config/linux/aarch64/entrypoints.txt
  libc/config/linux/api.td
  libc/config/linux/x86_64/entrypoints.txt
  libc/include/__llvm-libc-common.h
  libc/spec/llvm_libc_ext.td
  libc/src/__support/CMakeLists.txt
  libc/src/__support/FPUtil/CMakeLists.txt
  libc/src/__support/File/CMakeLists.txt
  libc/src/errno/CMakeLists.txt
  libc/src/errno/__errno_location.cpp
  libc/src/errno/__errno_location.h
  libc/src/errno/errno.cpp
  libc/src/errno/llvmlibc_errno.h
  libc/src/fcntl/linux/CMakeLists.txt
  libc/src/math/generic/CMakeLists.txt
  libc/src/signal/linux/CMakeLists.txt
  libc/src/sys/mman/linux/CMakeLists.txt
  libc/src/sys/stat/linux/CMakeLists.txt
  libc/src/threads/linux/CMakeLists.txt
  libc/src/time/CMakeLists.txt
  libc/src/unistd/linux/CMakeLists.txt
  libc/test/loader/linux/CMakeLists.txt
  libc/test/src/errno/CMakeLists.txt
  libc/test/src/math/CMakeLists.txt
  libc/test/src/signal/CMakeLists.txt
  libc/test/src/sys/mman/linux/CMakeLists.txt
  libc/test/src/threads/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120920.412759.patch
Type: text/x-patch
Size: 17756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220303/f2ca2d46/attachment-0001.bin>
    
    
More information about the libc-commits
mailing list