diff options
author | Jason Merrill <jason@redhat.com> | 2020-05-15 17:59:49 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:31 -0300 |
commit | 41824d775daf81f369f73cf5bf11709f32347484 (patch) | |
tree | a86275bdd0a2e90488b3edd181d4fa5a80b2a605 /gcc/tree-inline.c | |
parent | 2848a62521a9e1a3c6c783614c2e23ade665a79a (diff) | |
download | gcc-41824d775daf81f369f73cf5bf11709f32347484.zip gcc-41824d775daf81f369f73cf5bf11709f32347484.tar.gz gcc-41824d775daf81f369f73cf5bf11709f32347484.tar.bz2 |
c++: Enable coroutines with -std=c++20.
Now that GCC 10 is out it seems time. People can still choose to disable
coroutines with -fno-coroutines.
This also switches the coroutines testsuite to run in C++20 mode. The
change to coro.h is only necessary for co-await-11-forwarding.C; we could
alternatively #include <utility> just in that file.
gcc/c-family/ChangeLog
2020-05-15 Jason Merrill <jason@redhat.com>
* c-opts.c (set_std_cxx20): Set flag_coroutines.
gcc/testsuite/ChangeLog
2020-05-15 Jason Merrill <jason@redhat.com>
* g++.dg/coroutines/coro.h: Always #include <utility>.
* g++.dg/coroutines/coroutines.exp (DEFAULT_COROFLAGS): Use
-std=c++20.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions