diff options
author | Jason Merrill <jason@redhat.com> | 2020-05-15 17:59:49 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-05-15 17:59:49 -0400 |
commit | 29f0e90d9904d8e0965443d4da4c95ddde5edb1e (patch) | |
tree | bfa05c25f3204db05cd5eb7e94c5814cf284f204 /libgo | |
parent | 16485ea97b3d9856a9387d858ca455889e97bf30 (diff) | |
download | gcc-29f0e90d9904d8e0965443d4da4c95ddde5edb1e.zip gcc-29f0e90d9904d8e0965443d4da4c95ddde5edb1e.tar.gz gcc-29f0e90d9904d8e0965443d4da4c95ddde5edb1e.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 'libgo')
0 files changed, 0 insertions, 0 deletions