]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
diagnostics: rename tree-diagnostic-path.cc to diagnostic-path.cc
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 18 Jun 2024 14:59:56 +0000 (10:59 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 18 Jun 2024 14:59:56 +0000 (10:59 -0400)
Now that nothing in tree-diagnostic-path.cc uses "tree", this patch
renames it to diagnostic-path.cc and moves it from OBJS to
OBJS-libcommon.

No functional change intended.

gcc/ChangeLog:
* Makefile.in (OBJS): Move selftest-diagnostic-path.o,
selftest-logical-location.o, and tree-diagnostic-path.o to...
(OBJS-libcommon): ...here, renaming tree-diagnostic-path.o to
diagnostic-path.o.
* tree-diagnostic-path.cc: Rename to...
* diagnostic-path.cc: ...this.  Drop include of "tree.h".
(tree_diagnostic_path_cc_tests): Rename to...
(diagnostic_path_cc_tests): ...this.
* selftest-run-tests.cc (selftest::run_tests): Update for above
renaming.
* selftest.h (tree_diagnostic_path_cc_tests): Rename decl to...
(diagnostic_path_cc_tests): ...this.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/Makefile.in
gcc/diagnostic-path.cc [moved from gcc/tree-diagnostic-path.cc with 99% similarity]
gcc/selftest-run-tests.cc
gcc/selftest.h

index e701d9fb082978ba1e1c8de9015a4974cd09d228..638ea6b2307b64968a45716e4e7011a9beaa05c8 100644 (file)
@@ -1700,8 +1700,6 @@ OBJS = \
        ubsan.o \
        sanopt.o \
        sancov.o \
-       selftest-diagnostic-path.o \
-       selftest-logical-location.o \
        simple-diagnostic-path.o \
        tree-call-cdce.o \
        tree-cfg.o \
@@ -1712,7 +1710,6 @@ OBJS = \
        tree-dfa.o \
        tree-diagnostic.o \
        tree-diagnostic-client-data-hooks.o \
-       tree-diagnostic-path.o \
        tree-dump.o \
        tree-eh.o \
        tree-emutls.o \
@@ -1827,6 +1824,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \
        diagnostic-format-json.o \
        diagnostic-format-sarif.o \
        diagnostic-macro-unwinding.o \
+       diagnostic-path.o \
        diagnostic-show-locus.o \
        edit-context.o \
        pretty-print.o intl.o \
@@ -1834,6 +1832,8 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \
        sbitmap.o \
        vec.o input.o hash-table.o ggc-none.o memory-block.o \
        selftest.o selftest-diagnostic.o sort.o \
+       selftest-diagnostic-path.o \
+       selftest-logical-location.o \
        text-art/box-drawing.o \
        text-art/canvas.o \
        text-art/ruler.o \
similarity index 99%
rename from gcc/tree-diagnostic-path.cc
rename to gcc/diagnostic-path.cc
index 35f8ea2b8b62140cae3888fff4994e1382c7f737..882dc1c5805fd31c9bcd27545190fa3a82f9e67b 100644 (file)
@@ -25,7 +25,6 @@ along with GCC; see the file COPYING3.  If not see
 #define INCLUDE_VECTOR
 #include "system.h"
 #include "coretypes.h"
-#include "tree.h"
 #include "diagnostic.h"
 #include "diagnostic-macro-unwinding.h"
 #include "intl.h"
@@ -2199,7 +2198,7 @@ control_flow_tests (const line_table_case &case_)
 /* Run all of the selftests within this file.  */
 
 void
-tree_diagnostic_path_cc_tests ()
+diagnostic_path_cc_tests ()
 {
   /* In a few places we use the global dc's printer to determine
      colorization so ensure this off during the tests.  */
index 3275db38ba92e99d22e767351a2dc357cc0b2530..e6779206c470269fa94628dadff960c00b3b28bc 100644 (file)
@@ -102,7 +102,7 @@ selftest::run_tests ()
   spellcheck_cc_tests ();
   spellcheck_tree_cc_tests ();
   tree_cfg_cc_tests ();
-  tree_diagnostic_path_cc_tests ();
+  diagnostic_path_cc_tests ();
   simple_diagnostic_path_cc_tests ();
   attribs_cc_tests ();
 
index 2d1aa91607e3c9a7a33d82371fd54f2a59e0196e..dcb1463ed906d73bac5a08d8eb11c0b396397310 100644 (file)
@@ -222,6 +222,7 @@ extern void cgraph_cc_tests ();
 extern void convert_cc_tests ();
 extern void diagnostic_color_cc_tests ();
 extern void diagnostic_format_json_cc_tests ();
+extern void diagnostic_path_cc_tests ();
 extern void diagnostic_show_locus_cc_tests ();
 extern void digraph_cc_tests ();
 extern void dumpfile_cc_tests ();
@@ -259,7 +260,6 @@ extern void sreal_cc_tests ();
 extern void store_merging_cc_tests ();
 extern void tree_cc_tests ();
 extern void tree_cfg_cc_tests ();
-extern void tree_diagnostic_path_cc_tests ();
 extern void tristate_cc_tests ();
 extern void typed_splay_tree_cc_tests ();
 extern void vec_cc_tests ();