| 34a006ea | 16-Sep-2025 |
Alex Richardson <arichardson@FreeBSD.org> |
libc++: silence -Wnontrivial-memaccess warning with newer clang
Apply part of LLVM commit 71315698c91d0cda054b903da0594ca6f072c350 to silence the -Wnontrivial-memaccess warning that is triggered any
libc++: silence -Wnontrivial-memaccess warning with newer clang
Apply part of LLVM commit 71315698c91d0cda054b903da0594ca6f072c350 to silence the -Wnontrivial-memaccess warning that is triggered any time this function is instantiated by user code. This fixes another buildworld failure with Clang HEAD.
Original commit message: [clang] Warn about memset/memcpy to NonTriviallyCopyable types (#111434) This implements a warning that's similar to what GCC does in that context: both memcpy and memset require their first and second operand to be trivially copyable, let's warn if that's not the case.
Reviewed by: emaste, dim MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52534
show more ...
|
| 086ce467 | 16-Sep-2025 |
Alex Richardson <arichardson@FreeBSD.org> |
libc++: Fix deprecation warnings with latest clang
Latest clang has become more strict in diagnosing deprecated decls, so pull in LLVM commit 9feac2cbd0d80927ce9a8b4c3e810d2b81802d55.
Original comm
libc++: Fix deprecation warnings with latest clang
Latest clang has become more strict in diagnosing deprecated decls, so pull in LLVM commit 9feac2cbd0d80927ce9a8b4c3e810d2b81802d55.
Original commit message: [libc++] Improve deprecated diagnostic guards.
Recent Clang-21 builds improved the deprecated diagnotics. This uncovered missing guards in libc++ internally.
Reviewed by: dim MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52531
show more ...
|
| dee76cf2 | 16-Sep-2025 |
Alex Richardson <arichardson@FreeBSD.org> |
libc++: avoid use of deprecated __reference_binds_to_temporary
This was removed in upstream libc++ in commit 437ad06f762ab07d89badecdd20627db200b98d3, but as this does not apply cleanly to the curre
libc++: avoid use of deprecated __reference_binds_to_temporary
This was removed in upstream libc++ in commit 437ad06f762ab07d89badecdd20627db200b98d3, but as this does not apply cleanly to the current repository, I am applying the equivalent change in a minimally invasive way. This is needed to build with latest clang HEAD as of today.
Reviewed by: dim MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52530
show more ...
|
| 072b5fb6 | 05-Aug-2024 |
Dimitry Andric <dim@FreeBSD.org> |
libcxx-compat: revert llvmorg-19-init-4003-g55357160d0e1:
[libc++] Use GCC type traits builtins for remove_cv and remove_cvref (#81386)
They have been added recently to GCC without support for
libcxx-compat: revert llvmorg-19-init-4003-g55357160d0e1:
[libc++] Use GCC type traits builtins for remove_cv and remove_cvref (#81386)
They have been added recently to GCC without support for mangling. This patch uses them in structs and adds aliases to these structs instead of the builtins directly.
PR: 280562 MFC after: 1 month
show more ...
|
| a7b2d7f2 | 05-Aug-2024 |
Dimitry Andric <dim@FreeBSD.org> |
libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83:
[libc++] Simplify the implementation of remove_reference (#85207)
GCC 13 introduced the type trait `__remove_reference`. We can simplif
libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83:
[libc++] Simplify the implementation of remove_reference (#85207)
GCC 13 introduced the type trait `__remove_reference`. We can simplify the implementation of `remove_reference` a bit by using it.
PR: 280562 MFC after: 1 month
show more ...
|
| e8847079 | 05-Aug-2024 |
Dimitry Andric <dim@FreeBSD.org> |
libcxx-compat: revert llvmorg-19-init-17727-g0eebb48fcfbc:
[libc++] Merge is_member{,_object,_function}_pointer.h (#98727)
The implementations for these traits have been simplified quite a bit,
libcxx-compat: revert llvmorg-19-init-17727-g0eebb48fcfbc:
[libc++] Merge is_member{,_object,_function}_pointer.h (#98727)
The implementations for these traits have been simplified quite a bit, since we have builtins available for them now.
PR: 280562 MFC after: 1 month
show more ...
|