SSiva Chandra Reddy[libc] Make the errno macro resolve to the thread local variable directly.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[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 | 4 年前 | |
[libc][NFC] Add dummy errno target to satisfy mixed mode builds. In mixed mode builds, we should not be including errno as part of LLVM libc - errno from another library (or the system library) should be used. But, other entrypoints which use errno list LLVM libc's errno as a dep ta satisfy the full build mode. So, we add a dummy errno implementation with empty files to make both mixed mode and full build mode happy. | 4 年前 | |
[libc][NFC] Add dummy errno target to satisfy mixed mode builds. In mixed mode builds, we should not be including errno as part of LLVM libc - errno from another library (or the system library) should be used. But, other entrypoints which use errno list LLVM libc's errno as a dep ta satisfy the full build mode. So, we add a dummy errno implementation with empty files to make both mixed mode and full build mode happy. | 4 年前 | |
[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 | 4 年前 | |
[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 | 4 年前 |