From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] libstdc++: Add new headers to stdc++.h
Date: Thu, 26 Nov 2020 11:26:07 +0000 [thread overview]
Message-ID: <20201126112607.GA2103172@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
libstdc++-v3/ChangeLog:
* include/precompiled/stdc++.h: Add new headers.
* include/std/stop_token: Include <semaphore> unconditionally.
Tested powerpc64le-linux. Committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1233 bytes --]
commit 127aa17e162384034254e93cd1ae37224c0ce197
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Nov 26 11:25:55 2020
libstdc++: Add new headers to stdc++.h
libstdc++-v3/ChangeLog:
* include/precompiled/stdc++.h: Add new headers.
* include/std/stop_token: Include <semaphore> unconditionally.
diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index a418c46288de..692fae76a42f 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -140,10 +140,12 @@
#if __cpp_impl_coroutine
# include <coroutine>
#endif
+#include <latch>
#include <numbers>
#include <ranges>
#include <span>
#include <stop_token>
+#include <semaphore>
#include <syncstream>
#include <version>
#endif
diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token
index 5b2d5a0427c7..316342805702 100644
--- a/libstdc++-v3/include/std/stop_token
+++ b/libstdc++-v3/include/std/stop_token
@@ -34,9 +34,7 @@
#include <atomic>
#include <bits/std_thread.h>
-#if __has_include(<semaphore>)
-# include <semaphore>
-#endif
+#include <semaphore>
#define __cpp_lib_jthread 201911L
reply other threads:[~2020-11-26 11:26 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=20201126112607.GA2103172@redhat.com \
--to=jwakely@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@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: link
Be 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).