diff --git a/libcxx/docs/ReleaseNotes/18.rst b/libcxx/docs/ReleaseNotes/18.rst index 1a5b959eac6ce6..f223399cd3f0f9 100644 --- a/libcxx/docs/ReleaseNotes/18.rst +++ b/libcxx/docs/ReleaseNotes/18.rst @@ -87,16 +87,16 @@ Deprecations and Removals macro is provided to restore the previous behavior, and it will be supported in the LLVM 18 release only. In LLVM 19 and beyond, ``_LIBCPP_ENABLE_NARROWING_CONVERSIONS_IN_VARIANT`` will not be honored anymore. +- The ``_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED`` macro is not honored anymore in LLVM 18. + Please see the updated documentation about the hardening modes in libc++ and in particular the + ``_LIBCPP_VERBOSE_ABORT`` macro for details. + Upcoming Deprecations and Removals ---------------------------------- LLVM 18 ~~~~~~~ -- The ``_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED`` macro will not be honored anymore in LLVM 18. - Please see the updated documentation about the hardening modes in libc++ and in particular the - ``_LIBCPP_VERBOSE_ABORT`` macro for details. - - The headers ````, ````, ````, ````, ````, ````, ````, ````, ````, ````, diff --git a/libcxx/include/__verbose_abort b/libcxx/include/__verbose_abort index a38284b711f362..8970ea00f03baa 100644 --- a/libcxx/include/__verbose_abort +++ b/libcxx/include/__verbose_abort @@ -38,13 +38,6 @@ void __libcpp_verbose_abort(const char *__format, ...); // make sure that the program terminates but without taking any complex dependencies in this header. #if !defined(_LIBCPP_VERBOSE_ABORT) -// Support _LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED until LLVM 18, but tell people -// to move to customizing _LIBCPP_VERBOSE_ABORT instead. -# if defined(_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT) && defined(_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED) -# undef _LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT -# warning _LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED is deprecated, please customize _LIBCPP_VERBOSE_ABORT instead -# endif - # if defined(_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT) // The decltype is there to suppress -Wunused warnings in this configuration. void __use(const char*, ...); diff --git a/libcxx/test/libcxx/assertions/deprecated-link-time-custom-handler.pass.cpp b/libcxx/test/libcxx/assertions/deprecated-link-time-custom-handler.pass.cpp deleted file mode 100644 index 47cb53c7a8786a..00000000000000 --- a/libcxx/test/libcxx/assertions/deprecated-link-time-custom-handler.pass.cpp +++ /dev/null @@ -1,28 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// XFAIL: availability-verbose_abort-missing - -// Make sure that we still support _LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED for folks -// who customize the verbose termination function at link-time in back-deployment environments. - -// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED - -// We emit a #warning about the deprecation of this setting, so make sure we don't turn that into an error. -// ADDITIONAL_COMPILE_FLAGS: -Wno-error - -#include - -void std::__libcpp_verbose_abort(char const*, ...) { - std::exit(EXIT_SUCCESS); -} - -int main(int, char**) { - _LIBCPP_ASSERT(false, "message"); - return EXIT_FAILURE; -}