From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1984) id D4C3C3B9F800; Fri, 17 Jul 2020 14:35:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4C3C3B9F800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594996532; bh=73hzRXcXT0XFuMn29ZjMVWU8zXzOKpOz52xn+UiG6Ek=; h=From:To:Subject:Date:From; b=kii2MHW2BK8Yw/DXeo7JJQtD5eRRp56sah+BM0IBwXc0q9KcX4lLR5+vxxXX40l/A rnF6fxrJBAuWfXTZIi2n3zfJvvUFnZVXJJ8bajZ9wz+/RWmasTB2dmZyffY5/hVokJ CVRXhbdTXO3Awza9Q4NklqzQFJJOodwrqkya4oio= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tamar Christina To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/arm-perf-staging)] coroutines: Rename the coroutines cpp builtin. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/vendors/ARM/heads/arm-perf-staging X-Git-Oldrev: 2dd4ceacd8ba3718573c67cd43f8a403fcf4146d X-Git-Newrev: ee26baf4a8162a309fbcba591377b9e0c362630d Message-Id: <20200717143532.D4C3C3B9F800@sourceware.org> Date: Fri, 17 Jul 2020 14:35:32 +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: Fri, 17 Jul 2020 14:35:32 -0000 https://gcc.gnu.org/g:ee26baf4a8162a309fbcba591377b9e0c362630d commit ee26baf4a8162a309fbcba591377b9e0c362630d Author: Iain Sandoe Date: Mon Apr 13 20:48:46 2020 +0100 coroutines: Rename the coroutines cpp builtin. The current standard draft (n4861) amends the cpp builtin for coroutines to '__cpp_impl_coroutine', no other change. gcc/c-family/ChangeLog: 2020-04-13 Iain Sandoe * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin define, per n4861. gcc/testsuite/ChangeLog: 2020-04-13 Iain Sandoe * g++.dg/coroutines/coro-pre-proc.C: Update coroutines builtin define, per n4861. * g++.dg/coroutines/coro.h: Likewise. libstdc++-v3/ChangeLog: 2020-04-13 Iain Sandoe * include/std/coroutine: Update coroutines builtin define, per n4861. Diff: --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-cppbuiltin.c | 2 +- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/coroutines/coro-pre-proc.C | 4 ++-- gcc/testsuite/g++.dg/coroutines/coro.h | 2 +- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/coroutine | 2 +- 7 files changed, 21 insertions(+), 5 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 92aed0ed7ce..414d0c09be9 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2020-04-13 Iain Sandoe + + * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin + define, per n4861. + 2020-04-02 Richard Biener PR c/94392 diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index 5532ae46ae1..db91a36794a 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -1012,7 +1012,7 @@ c_cpp_builtins (cpp_reader *pfile) cpp_define (pfile, "__cpp_concepts=201507L"); } if (flag_coroutines) - cpp_define (pfile, "__cpp_coroutines=201902L"); /* n4835, C++20 CD */ + cpp_define (pfile, "__cpp_impl_coroutine=201902L"); /* n4861, DIS */ if (flag_tm) /* Use a value smaller than the 201505 specified in the TS, since we don't yet support atomic_cancel. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 805aa398252..e0d3ea91d57 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-13 Iain Sandoe + + * g++.dg/coroutines/coro-pre-proc.C: Update coroutines builtin + define, per n4861. + * g++.dg/coroutines/coro.h: Likewise. + 2020-04-13 Iain Sandoe * gcc.dg/darwin-version-1.c: Use -mmacosx-version-min= 10.8 diff --git a/gcc/testsuite/g++.dg/coroutines/coro-pre-proc.C b/gcc/testsuite/g++.dg/coroutines/coro-pre-proc.C index f22a5e08332..eacdb35d3c7 100644 --- a/gcc/testsuite/g++.dg/coroutines/coro-pre-proc.C +++ b/gcc/testsuite/g++.dg/coroutines/coro-pre-proc.C @@ -1,9 +1,9 @@ // Only need to compile this, with the default options from the .exp. -#ifndef __cpp_coroutines +#ifndef __cpp_impl_coroutine #error "coroutines should engaged." #endif -#if __cpp_coroutines != 201902L +#if __cpp_impl_coroutine != 201902L #error "coroutine version out of sync." #endif diff --git a/gcc/testsuite/g++.dg/coroutines/coro.h b/gcc/testsuite/g++.dg/coroutines/coro.h index 31336549f82..a1bd38b8d12 100644 --- a/gcc/testsuite/g++.dg/coroutines/coro.h +++ b/gcc/testsuite/g++.dg/coroutines/coro.h @@ -29,7 +29,7 @@ namespace coro = std::experimental; // Fragments (with short-cuts) to mimic enough of the library header to // make some progress. -# if __cpp_coroutines +# if __cpp_impl_coroutine namespace std { inline namespace __n4835 { diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3ca7a0e7165..5d4c34ada18 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2020-04-13 Iain Sandoe + + * include/std/coroutine: Update coroutines builtin define, + per n4861. + 2020-04-09 Jonathan Wakely * libsupc++/compare (compare_three_way): Fix noexcept-specifier. diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine index 363402330e4..2e45c451450 100644 --- a/libstdc++-v3/include/std/coroutine +++ b/libstdc++-v3/include/std/coroutine @@ -54,7 +54,7 @@ namespace std _GLIBCXX_VISIBILITY (default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION -#if __cpp_coroutines +#if __cpp_impl_coroutine inline namespace __n4835 { // 17.12.2 coroutine traits