diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-19 14:25:51 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-03-19 14:29:43 -0400 |
commit | 981524428b21bf6935f8f9a3b8394d5504f4f0fc (patch) | |
tree | adcaf436c846d672e130cbedcd22e1c9668f7ffd /gcc/selftest-run-tests.cc | |
parent | bc84b61b00792ef38e1c2cd6b7280087e4fd2b57 (diff) | |
download | gcc-981524428b21bf6935f8f9a3b8394d5504f4f0fc.zip gcc-981524428b21bf6935f8f9a3b8394d5504f4f0fc.tar.gz gcc-981524428b21bf6935f8f9a3b8394d5504f4f0fc.tar.bz2 |
selftest: Move C-specific tests to c_family
When trying to make use of the selftest framework over on the rust
frontend, we ran into issues where rust1 was expected to produce errors
containing C-like type names such as `int`.
I had gotten in contact with David Malcolm on the gcc mailing list [1],
who advised moving some test functions to a better location. The
offending functions have also been renamed in order to better fit the C
family of tests, and are thus not called when performing general
selftests anymore.
Kindly,
[1]: https://gcc.gnu.org/pipermail/gcc/2021-November/237703.html
2022-02-16 Arthur Cohen <arthur.cohen@embecosm.com>
gcc/c-family/
* c-common.cc (c_family_tests): Call the new tests.
* c-common.h (c_diagnostic_tests): Declare.
(c_opt_problem_cc_tests): Likewise.
gcc/
* diagnostic.cc (diagnostic_cc_tests): Rename to...
(c_diagnostic_cc_tests): ...this.
* opt-problem.cc (opt_problem_cc_tests): Rename to...
(c_opt_problem_cc_tests): ...this.
* selftest-run-tests.cc (selftest::run_tests): No longer run
opt_problem_cc_tests or diagnostic_cc_tests.
* selftest.h (diagnostic_cc_tests): Remove declaration.
(opt_problem_cc_tests): Likewise.
Diffstat (limited to 'gcc/selftest-run-tests.cc')
-rw-r--r-- | gcc/selftest-run-tests.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/selftest-run-tests.cc b/gcc/selftest-run-tests.cc index 99c3542..d59e0ae 100644 --- a/gcc/selftest-run-tests.cc +++ b/gcc/selftest-run-tests.cc @@ -76,7 +76,6 @@ selftest::run_tests () json_cc_tests (); cgraph_cc_tests (); optinfo_emit_json_cc_tests (); - opt_problem_cc_tests (); ordered_hash_map_tests_cc_tests (); splay_tree_cc_tests (); @@ -95,7 +94,6 @@ selftest::run_tests () /* Higher-level tests, or for components that other selftests don't rely on. */ diagnostic_show_locus_cc_tests (); - diagnostic_cc_tests (); diagnostic_format_json_cc_tests (); edit_context_cc_tests (); fold_const_cc_tests (); |