| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support headers After feedback from D122861, do the same thing with some of the other headers. Try to move the headers so they have a similar style and way of doing things. Reviewed By: ldionne, daltenty Differential Revision: https://reviews.llvm.org/D124227 | 4 年前 | |
[SystemZ][z/OS] Missing locale functions libc++ The aim is to add the missing z/OS specific locale functions for libc++ (newlocale, freelocale and uselocale). Reviewed By: ldionne, #libc, curdeius Differential Revision: https://reviews.llvm.org/D98044 | 5 年前 | |
[SystemZ][z/OS] Fix warnings from unsigned int to long in 32-bit mode This patch fixes the warnings which shows up when libcxx library started to be compiled in 32-bit mode on z/OS. More specifically, the assignment from unsigned int to time_t aka long was flags as follows: libcxx/include/c++/v1/__support/ibm/nanosleep.h:31:11: warning: implicit conversion changes signedness: 'unsigned int' to 'time_t' (aka 'long') [-Wsign-conversion] __sec = sleep(static_cast<unsigned int>(__sec)); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libcxx/include/c++/v1/__support/ibm/nanosleep.h:36:36: warning: implicit conversion changes signedness: 'unsigned int' to 'long' [-Wsign-conversion] __rem->tv_nsec = __micro_sec * 1000; ~ ~~~~~~~~~~~~^~~~~~ libcxx/include/c++/v1/__support/ibm/nanosleep.h:47:36: warning: implicit conversion changes signedness: 'unsigned int' to 'long' [-Wsign-conversion] __rem->tv_nsec = __micro_sec * 1000; ~ ~~~~~~~~~~~~^~~~~~ 3 warnings generated. Here is a small test case illustrating the issue: typedef long time_t ; unsigned int sleep(unsigned int ); int main() { time_t sec = 0; #ifdef FIX sec = static_cast<time_t>(sleep(static_cast<unsigned int>(sec))); #else sec = sleep(static_cast<unsigned int>(sec)); #endif } clang++ -c -Wsign-conversion -m32 t.C ``` t.C:8:9: warning: implicit conversion changes signedness: 'unsigned int' to 'time_t' (aka 'long') [-Wsign-conversion] sec = sleep(static_cast<unsigned int>(sec)); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reviewed By: ldionne, #libc, Quuxplusone, Mordante Differential Revision: https://reviews.llvm.org/D112837 | 4 年前 | |
[libc++][NFC] Add MVS guard for locale_mgmt_zos.h This header need not be included on non-z/OS IBM platforms (and indeed will add nothing when it is), so add a guard. This let's us remove the header without things breaking when shipping libc++ for AIX. Reviewed By: hubert.reinterpretcast, fanbo-meng Differential Revision: https://reviews.llvm.org/D129493 | 3 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 3 年前 |