public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-1735] libstdc++: Remove garbage collection support for C++23 [P2186R2] Date: Tue, 22 Jun 2021 20:29:51 +0000 (GMT) [thread overview] Message-ID: <20210622202951.8185B39540E7@sourceware.org> (raw) https://gcc.gnu.org/g:b5a29741db11007e37d8d4ff977b89a8314abfda commit r12-1735-gb5a29741db11007e37d8d4ff977b89a8314abfda Author: Jonathan Wakely <jwakely@redhat.com> Date: Wed Jun 2 16:41:26 2021 +0100 libstdc++: Remove garbage collection support for C++23 [P2186R2] This removes the non-functional garbage colection support from <memory>, as proposed for C++23 by P2186R2. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/std/memory (declare_reachable, undeclare_reachable) (declare_no_pointers, undeclare_no_pointers, get_pointer_safety) (pointer_safety): Only define for C++11 to C++20 inclusive. * testsuite/20_util/pointer_safety/1.cc: Do not run for C++23. Diff: --- libstdc++-v3/include/std/memory | 4 ++-- libstdc++-v3/testsuite/20_util/pointer_safety/1.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory index f19de275b2b..da64be2471a 100644 --- a/libstdc++-v3/include/std/memory +++ b/libstdc++-v3/include/std/memory @@ -87,7 +87,7 @@ # include <bits/uses_allocator_args.h> #endif -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L && __cplusplus <= 202002L namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -132,7 +132,7 @@ get_pointer_safety() noexcept { return pointer_safety::relaxed; } _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#endif // C++11 +#endif // C++11 to C++20 #if __cplusplus >= 201703L // Parallel STL algorithms diff --git a/libstdc++-v3/testsuite/20_util/pointer_safety/1.cc b/libstdc++-v3/testsuite/20_util/pointer_safety/1.cc index 7d9a425e3e7..bfacbce27d2 100644 --- a/libstdc++-v3/testsuite/20_util/pointer_safety/1.cc +++ b/libstdc++-v3/testsuite/20_util/pointer_safety/1.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do run { target c++11 } } +// { dg-do run { target { c++11 && { ! c++23 } } } } #include <memory> #include <testsuite_hooks.h>
reply other threads:[~2021-06-22 20:29 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210622202951.8185B39540E7@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).