From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2136) id AD70F396EC09; Wed, 17 Jun 2020 20:40:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD70F396EC09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592426416; bh=D0DE80980NxWSYfOjpSiy9t3hwZSdAZHLTJBLZhfulw=; h=From:To:Subject:Date:From; b=hEbj4nBWwdaaZMGXFZzSIi48UTrFpgK9Wh/Z3pJ4mENcwbGKgi0OTY0Zr0OmT62w5 gGuAHv1YTjmhnrQmURpAPCB3LAoCXHjk0oAbuMx28kP2gyABKHRfF/Hbk7MTR220QV 2ABG7hnscknGZtgZ43tMx/aPx6rzGV+M9VEQ27E0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Aldy Hernandez To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/ranger] libstdc++: Update value of __cpp_lib_jthread macro X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/devel/ranger X-Git-Oldrev: 72d0ef73d2cd46bda2f28e1866d637cfe8edb208 X-Git-Newrev: aa12ab2e93b6fd7c0c5292504b0bbe2dd304e5ed Message-Id: <20200617204016.AD70F396EC09@sourceware.org> Date: Wed, 17 Jun 2020 20:40:16 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 20:40:16 -0000 https://gcc.gnu.org/g:aa12ab2e93b6fd7c0c5292504b0bbe2dd304e5ed commit aa12ab2e93b6fd7c0c5292504b0bbe2dd304e5ed Author: Jonathan Wakely Date: Wed Apr 22 22:54:34 2020 +0100 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. Diff: --- libstdc++-v3/ChangeLog | 14 ++++++++++++++ libstdc++-v3/include/std/condition_variable | 3 +-- libstdc++-v3/include/std/stop_token | 2 +- libstdc++-v3/include/std/version | 2 +- .../30_threads/condition_variable_any/stop_token/1.cc | 2 +- .../30_threads/condition_variable_any/stop_token/2.cc | 2 +- libstdc++-v3/testsuite/30_threads/jthread/1.cc | 2 +- libstdc++-v3/testsuite/30_threads/jthread/2.cc | 2 +- libstdc++-v3/testsuite/30_threads/stop_token/1.cc | 2 +- libstdc++-v3/testsuite/30_threads/stop_token/2.cc | 2 +- 10 files changed, 23 insertions(+), 10 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2e1484fefb5..dc0b1eecfb0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,19 @@ 2020-04-22 Jonathan Wakely + * 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 diff --git a/libstdc++-v3/include/std/condition_variable b/libstdc++-v3/include/std/condition_variable index cc7f99f6921..2db9dff6c31 100644 --- a/libstdc++-v3/include/std/condition_variable +++ b/libstdc++-v3/include/std/condition_variable @@ -47,8 +47,7 @@ #include #if __cplusplus > 201703L -#define __cpp_lib_jthread 201907L -#include +# include #endif #if defined(_GLIBCXX_HAS_GTHREADS) diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token index 87beb08c71d..847d12f7454 100644 --- a/libstdc++-v3/include/std/stop_token +++ b/libstdc++-v3/include/std/stop_token @@ -34,7 +34,7 @@ #include #ifdef _GLIBCXX_HAS_GTHREADS -# define __cpp_lib_jthread 201907L +# define __cpp_lib_jthread 201911L # include # if __has_include() # include diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 6d7dcc46023..dafb09f982a 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -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 diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc index 59dafeb2d86..5b71cfb979f 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc @@ -22,6 +22,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc index 7254024bbb3..0f017e43996 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc @@ -22,6 +22,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/30_threads/jthread/1.cc b/libstdc++-v3/testsuite/30_threads/jthread/1.cc index dc47df9d205..d7c0a836b8b 100644 --- a/libstdc++-v3/testsuite/30_threads/jthread/1.cc +++ b/libstdc++-v3/testsuite/30_threads/jthread/1.cc @@ -23,6 +23,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/30_threads/jthread/2.cc b/libstdc++-v3/testsuite/30_threads/jthread/2.cc index 9a0abbe8f70..4c196c3fe92 100644 --- a/libstdc++-v3/testsuite/30_threads/jthread/2.cc +++ b/libstdc++-v3/testsuite/30_threads/jthread/2.cc @@ -23,6 +23,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/1.cc b/libstdc++-v3/testsuite/30_threads/stop_token/1.cc index 19294552fce..fffff3740c5 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/1.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/1.cc @@ -22,6 +22,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/2.cc b/libstdc++-v3/testsuite/30_threads/stop_token/2.cc index 7254024bbb3..0f017e43996 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/2.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/2.cc @@ -22,6 +22,6 @@ #ifndef __cpp_lib_jthread # error "Feature-test macro for jthread missing in " -#elif __cpp_lib_jthread != 201907L +#elif __cpp_lib_jthread != 201911L # error "Feature-test macro for jthread has wrong value in " #endif