Mercurial > hg > CbC > CbC_gcc
comparison gcc/selftest-run-tests.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Implementation of selftests. | 1 /* Implementation of selftests. |
2 Copyright (C) 2015-2018 Free Software Foundation, Inc. | 2 Copyright (C) 2015-2020 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
25 #include "target.h" | 25 #include "target.h" |
26 #include "langhooks.h" | 26 #include "langhooks.h" |
27 #include "options.h" | 27 #include "options.h" |
28 #include "stringpool.h" | 28 #include "stringpool.h" |
29 #include "attribs.h" | 29 #include "attribs.h" |
30 #include "analyzer/analyzer-selftests.h" | |
30 | 31 |
31 /* This function needed to be split out from selftest.c as it references | 32 /* This function needed to be split out from selftest.c as it references |
32 tests from the whole source tree, and so is within | 33 tests from the whole source tree, and so is within |
33 OBJS in Makefile.in, whereas selftest.o is within OBJS-libcommon. | 34 OBJS in Makefile.in, whereas selftest.o is within OBJS-libcommon. |
34 This allows us to embed tests within files in OBJS-libcommon without | 35 This allows us to embed tests within files in OBJS-libcommon without |
71 fibonacci_heap_c_tests (); | 72 fibonacci_heap_c_tests (); |
72 typed_splay_tree_c_tests (); | 73 typed_splay_tree_c_tests (); |
73 unique_ptr_tests_cc_tests (); | 74 unique_ptr_tests_cc_tests (); |
74 opt_proposer_c_tests (); | 75 opt_proposer_c_tests (); |
75 json_cc_tests (); | 76 json_cc_tests (); |
77 cgraph_c_tests (); | |
76 optinfo_emit_json_cc_tests (); | 78 optinfo_emit_json_cc_tests (); |
77 opt_problem_cc_tests (); | 79 opt_problem_cc_tests (); |
80 ordered_hash_map_tests_cc_tests (); | |
78 | 81 |
79 /* Mid-level data structures. */ | 82 /* Mid-level data structures. */ |
80 input_c_tests (); | 83 input_c_tests (); |
81 vec_perm_indices_c_tests (); | 84 vec_perm_indices_c_tests (); |
82 tree_c_tests (); | 85 tree_c_tests (); |
86 convert_c_tests (); | |
83 gimple_c_tests (); | 87 gimple_c_tests (); |
84 rtl_tests_c_tests (); | 88 rtl_tests_c_tests (); |
85 read_rtl_function_c_tests (); | 89 read_rtl_function_c_tests (); |
90 digraph_cc_tests (); | |
91 tristate_cc_tests (); | |
86 | 92 |
87 /* Higher-level tests, or for components that other selftests don't | 93 /* Higher-level tests, or for components that other selftests don't |
88 rely on. */ | 94 rely on. */ |
89 diagnostic_show_locus_c_tests (); | 95 diagnostic_show_locus_c_tests (); |
90 diagnostic_c_tests (); | 96 diagnostic_c_tests (); |
97 diagnostic_format_json_cc_tests (); | |
91 edit_context_c_tests (); | 98 edit_context_c_tests (); |
92 fold_const_c_tests (); | 99 fold_const_c_tests (); |
93 spellcheck_c_tests (); | 100 spellcheck_c_tests (); |
94 spellcheck_tree_c_tests (); | 101 spellcheck_tree_c_tests (); |
95 tree_cfg_c_tests (); | 102 tree_cfg_c_tests (); |
103 tree_diagnostic_path_cc_tests (); | |
96 attribute_c_tests (); | 104 attribute_c_tests (); |
97 | 105 |
98 /* This one relies on most of the above. */ | 106 /* This one relies on most of the above. */ |
99 function_tests_c_tests (); | 107 function_tests_c_tests (); |
100 | 108 |
103 targetm.run_target_selftests (); | 111 targetm.run_target_selftests (); |
104 | 112 |
105 store_merging_c_tests (); | 113 store_merging_c_tests (); |
106 predict_c_tests (); | 114 predict_c_tests (); |
107 simplify_rtx_c_tests (); | 115 simplify_rtx_c_tests (); |
116 dbgcnt_c_tests (); | |
108 | 117 |
109 /* Run any lang-specific selftests. */ | 118 /* Run any lang-specific selftests. */ |
110 lang_hooks.run_lang_selftests (); | 119 lang_hooks.run_lang_selftests (); |
120 | |
121 /* Run the analyzer selftests (if enabled). */ | |
122 ana::selftest::run_analyzer_selftests (); | |
111 | 123 |
112 /* Force a GC at the end of the selftests, to shake out GC-related | 124 /* Force a GC at the end of the selftests, to shake out GC-related |
113 issues. For example, if any GC-managed items have buggy (or missing) | 125 issues. For example, if any GC-managed items have buggy (or missing) |
114 finalizers, this last collection will ensure that things that were | 126 finalizers, this last collection will ensure that things that were |
115 failed to be finalized can be detected by valgrind. */ | 127 failed to be finalized can be detected by valgrind. */ |