2020-04-22 Jonathan Wakely <jwakely@redhat.com>
+ * include/std/condition_variable (__cpp_lib_jthread): Remove
+ redundant definition.
+ * include/std/stop_token (__cpp_lib_jthread): Update macro value to
+ indicate P1869R1 support.
+ * include/std/version (__cpp_lib_jthread): Update value.
+ * testsuite/30_threads/condition_variable_any/stop_token/1.cc: Check
+ for updated macro value.
+ * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
+ Likewise.
+ * testsuite/30_threads/jthread/1.cc: Likewise.
+ * testsuite/30_threads/jthread/2.cc: Likewise.
+ * testsuite/30_threads/stop_token/1.cc: Likewise.
+ * testsuite/30_threads/stop_token/2.cc: Likewise.
+
* testsuite/21_strings/basic_string/erasure.cc: Check for
__cpp_lib_erase_if macro.
* testsuite/23_containers/deque/erasure.cc: Add header name to #error
#include <bits/cxxabi_forced.h>
#if __cplusplus > 201703L
-#define __cpp_lib_jthread 201907L
-#include <stop_token>
+# include <stop_token>
#endif
#if defined(_GLIBCXX_HAS_GTHREADS)
#include <atomic>
#ifdef _GLIBCXX_HAS_GTHREADS
-# define __cpp_lib_jthread 201907L
+# define __cpp_lib_jthread 201911L
# include <bits/gthr.h>
# if __has_include(<semaphore>)
# include <semaphore>
#define __cpp_lib_erase_if 202002L
#define __cpp_lib_interpolate 201902L
#ifdef _GLIBCXX_HAS_GTHREADS
-# define __cpp_lib_jthread 201907L
+# define __cpp_lib_jthread 201911L
#endif
#define __cpp_lib_list_remove_return_type 201806L
#define __cpp_lib_math_constants 201907L
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <condition_variable>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <condition_variable>"
#endif
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <version>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <version>"
#endif
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <thread>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <thread>"
#endif
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <version>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <version>"
#endif
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <stop_token>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <stop_token>"
#endif
#ifndef __cpp_lib_jthread
# error "Feature-test macro for jthread missing in <version>"
-#elif __cpp_lib_jthread != 201907L
+#elif __cpp_lib_jthread != 201911L
# error "Feature-test macro for jthread has wrong value in <version>"
#endif