diff options
author | Jason Merrill <jason@redhat.com> | 2024-07-26 15:10:50 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-07-27 16:24:04 -0400 |
commit | dab0f35fcb4dd3ba584422013096c4ebc6bff90d (patch) | |
tree | 486d8130576e4bfc6c67a4251287078619a507ae /gcc/tree-ssa-ifcombine.c | |
parent | 928116e94a5a8a995dffd926af58abfa7286e78e (diff) | |
download | gcc-dab0f35fcb4dd3ba584422013096c4ebc6bff90d.zip gcc-dab0f35fcb4dd3ba584422013096c4ebc6bff90d.tar.gz gcc-dab0f35fcb4dd3ba584422013096c4ebc6bff90d.tar.bz2 |
c++: improve C++ testsuite default versions
I wanted to add more cases to the setting of std_list in g++-dg.exp, but
didn't want to do a full scan through the file for each case. So this patch
improves that in two ways: first, by extracting all interesting lines on a
single pass; second, by generating the list more flexibly: now we test every
version mentioned explicitly in the testcase, plus a few more if fewer than
three are mentioned.
This also lowers changes from testing four to three versions for most
testcases: the current default and the earliest and latest versions. This
will reduce testing of C++14 and C++20 modes, and increase testing of C++26
mode. C++ front-end developers are encouraged to set the
GXX_TESTSUITE_STDS environment variable to test more modes.
gcc/testsuite/ChangeLog:
* lib/gcc-dg.exp (get_matching_lines): New.
* lib/g++-dg.exp: Improve std_list selection.
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
0 files changed, 0 insertions, 0 deletions