Skip to content

Commit 5795e7b

Browse files
committed
[libc++][hardening][NFC] Fix the 17 release notes to remove mentions of hardening
This is to bring `main` in sync with `release/17.x` after https://reviews.llvm.org/D159171. Differential Revision: https://reviews.llvm.org/D159454
1 parent c86d896 commit 5795e7b

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

libcxx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ elseif (LIBCXX_HARDENING_MODE STREQUAL "unchecked")
786786
config_define(0 _LIBCPP_ENABLE_HARDENED_MODE_DEFAULT)
787787
config_define(0 _LIBCPP_ENABLE_DEBUG_MODE_DEFAULT)
788788
endif()
789-
# TODO(LLVM 18): Remove this after branching for LLVM 17, this is a simple
789+
# TODO(LLVM 19): Remove this after branching for LLVM 18, this is a simple
790790
# courtesy for vendors to be notified about this change.
791791
if (LIBCXX_ENABLE_ASSERTIONS)
792792
message(FATAL_ERROR "LIBCXX_ENABLE_ASSERTIONS has been replaced by LIBCXX_HARDENING_MODE=hardened")

libcxx/docs/ReleaseNotes/17.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ Improvements and New Features
8787
``std::ranges::find`` are now forwarding to ``std::memcmp`` for trivially
8888
equality comparable types, which can lead up to 40x performance improvements.
8989

90-
- ``std::string_view`` now provides iterators that check for out-of-bounds accesses when the safe
91-
libc++ mode is enabled.
92-
9390
- The performance of ``dynamic_cast`` on its hot paths is greatly improved and is as efficient as the
9491
``libsupc++`` implementation. Note that the performance improvements are shipped in ``libcxxabi``.
9592

@@ -128,14 +125,8 @@ Improvements and New Features
128125
Deprecations and Removals
129126
-------------------------
130127

131-
- The "safe" mode is replaced by the hardened mode in this release. The ``LIBCXX_ENABLE_ASSERTIONS`` CMake variable is
132-
deprecated and setting it will trigger an error; use ``LIBCXX_HARDENING_MODE`` instead. Similarly, the
133-
``_LIBCPP_ENABLE_ASSERTIONS`` macro is deprecated and setting it to ``1`` now enables the hardened mode. See
134-
``libcxx/docs/Hardening.rst`` for more details.
135-
136-
- The legacy debug mode has been removed in this release. Setting the macro ``_LIBCPP_ENABLE_DEBUG_MODE`` to ``1`` now
137-
enables the new debug mode which is part of hardening (see the "Improvements and New Features" section above). The
138-
``LIBCXX_ENABLE_DEBUG_MODE`` CMake variable has been removed. For additional context, refer to the `Discourse post
128+
- The legacy debug mode has been removed in this release. The ``LIBCXX_ENABLE_DEBUG_MODE`` CMake variable has been
129+
removed. For additional context, refer to the `Discourse post
139130
<https://discourse.llvm.org/t/rfc-removing-the-legacy-debug-mode-from-libc/71026>`_.
140131

141132
- The ``<experimental/coroutine>`` header has been removed in this release. The ``<coroutine>`` header

libcxx/docs/ReleaseNotes/18.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ see the `releases page <https://llvm.org/releases/>`_.
3535
What's New in Libc++ 18.0.0?
3636
==============================
3737

38+
- The "safe" mode is replaced by the hardened mode in this release. The
39+
``LIBCXX_ENABLE_ASSERTIONS`` CMake variable is deprecated and setting it will
40+
trigger an error; use ``LIBCXX_HARDENING_MODE`` instead. Similarly, the
41+
``_LIBCPP_ENABLE_ASSERTIONS`` macro is deprecated and setting it to ``1`` now
42+
enables the hardened mode. See ``libcxx/docs/Hardening.rst`` for more details.
43+
44+
- A new debug mode has been added, replacing the legacy debug mode that was
45+
removed in the LLVM 17 release. See ``libcxx/docs/Hardening.rst`` for more
46+
details.
3847

3948
Implemented Papers
4049
------------------

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202

203203
// HARDENING {
204204

205-
// TODO(hardening): remove this in LLVM 18.
205+
// TODO(hardening): remove this in LLVM 19.
206206
// This is for backward compatibility -- make enabling `_LIBCPP_ENABLE_ASSERTIONS` (which predates hardening modes)
207207
// equivalent to setting the hardened mode.
208208
# ifdef _LIBCPP_ENABLE_ASSERTIONS

libcxx/test/libcxx/assertions/modes/enabling_assertions_enables_hardened_mode.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// TODO(hardening): remove in LLVM 18.
9+
// TODO(hardening): remove in LLVM 19.
1010
// This test ensures that enabling assertions now enables the hardened mode.
1111

1212
// `check_assertion.h` is only available starting from C++11 and requires Unix headers.

0 commit comments

Comments
 (0)