]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: remove coroutines.exp
authorJason Merrill <jason@redhat.com>
Sat, 10 May 2025 15:24:38 +0000 (11:24 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 15 May 2025 21:10:58 +0000 (17:10 -0400)
commitde3cbcf9730b60db76c31c5b628f4bf2ebd6b284
treea56b919edf2695f05efbc1d59f476640f13de7d5
parentd31ab498b12ebbe4f50acb2aa240ff92c73f310c
c++: remove coroutines.exp

coroutines.exp was basically only there to add -std=c++20 to all the tests;
removing it lets us use the general support for running tests under multiple
standards.  Doing this revealed that some tests that specifically run in
C++17 mode were relying on -std=c++20 followed by -std=c++17 leaving
flag_coroutines set, which seems unintentional, and different from how we
handle other feature flags.  So this changes that, and adds the missing
-fcoroutines to those tests.

gcc/testsuite/ChangeLog:

* g++.dg/coroutines/co-await-syntax-09-convert.C: Add -fcoroutines.
* g++.dg/coroutines/co-await-syntax-10.C
* g++.dg/coroutines/co-await-syntax-11.C
* g++.dg/coroutines/co-await-void_type.C
* g++.dg/coroutines/co-return-warning-1.C
* g++.dg/coroutines/ramp-return-a.C
* g++.dg/coroutines/ramp-return-c.C: Likewise.
* g++.dg/coroutines/coroutines.exp: Removed.
* lib/g++-dg.exp: Start at C++20 for coroutines/

gcc/c-family/ChangeLog:

* c-opts.cc (c_common_post_options): Set flag_coroutines.
(set_std_cxx20, set_std_cxx23, set_std_cxx26): Not here.
gcc/c-family/c-opts.cc
gcc/testsuite/g++.dg/coroutines/co-await-syntax-09-convert.C
gcc/testsuite/g++.dg/coroutines/co-await-syntax-10.C
gcc/testsuite/g++.dg/coroutines/co-await-syntax-11.C
gcc/testsuite/g++.dg/coroutines/co-await-void_type.C
gcc/testsuite/g++.dg/coroutines/co-return-warning-1.C
gcc/testsuite/g++.dg/coroutines/coroutines.exp [deleted file]
gcc/testsuite/g++.dg/coroutines/ramp-return-a.C
gcc/testsuite/g++.dg/coroutines/ramp-return-c.C
gcc/testsuite/lib/g++-dg.exp