Commit aa12ab2e by Jonathan Wakely

libstdc++: Update value of __cpp_lib_jthread macro

	* 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.
parent 72d0ef73
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
......
......@@ -47,8 +47,7 @@
#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)
......
......@@ -34,7 +34,7 @@
#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>
......
......@@ -191,7 +191,7 @@
#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
......
......@@ -22,6 +22,6 @@
#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
......@@ -22,6 +22,6 @@
#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
......@@ -23,6 +23,6 @@
#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
......@@ -23,6 +23,6 @@
#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
......@@ -22,6 +22,6 @@
#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
......@@ -22,6 +22,6 @@
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment