summaryrefslogtreecommitdiff
path: root/libc/src/__support/CPP/new.cpp
AgeCommit message (Collapse)Author
2024-11-03[libc] Add proxy headers to handle memory allocation associated with the ↵Job Henandez Lara
header `#include <stdlib.h> (#114690) This finishes the work from https://github.com/llvm/llvm-project/pull/114453 by adding proxy headers for `malloc`, `realloc`, `free` and `aligned_alloc`.
2024-11-01[libc] Remove the #include <stdlib.h> header (#114453)Job Henandez Lara
2024-09-11[libc] Add osutils for Windows and make libc and its tests build on Windows ↵Sirui Mu
target (#104676) This PR first adds osutils for Windows, and changes some libc code to make libc and its tests build on the Windows target. It then temporarily disables some libc tests that are currently problematic on Windows. Specifically, the changes besides the addition of osutils include: - Macro `LIBC_TYPES_HAS_FLOAT16` is disabled on Windows. `clang-cl` generates calls to functions in `compiler-rt` to handle float16 arithmetic and these functions are currently not linked in on Windows. - Macro `LIBC_TYPES_HAS_INT128` is disabled on Windows. - The invocation to `::aligned_malloc` is changed to an invocation to `::_aligned_malloc`. - The following unit tests are temporarily disabled because they currently fail on Windows: - `test.src.__support.big_int_test` - `test.src.__support.arg_list_test` - `test.src.fenv.getenv_and_setenv_test` - Tests involving `__m128i`, `__m256i`, and `__m512i` in `test.src.string.memory_utils.op_tests.cpp` - `test_range_errors` in `libc/test/src/math/smoke/AddTest.h` and `libc/test/src/math/smoke/SubTest.h`
2022-12-15[libc] Handle allocation failures in the dirent API gracefully.Siva Chandra Reddy
Along the way, setting of errno has been moved out of the internal code. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140078