diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-07-25 15:13:40 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-07-25 15:13:40 -0400 |
commit | 8a1a19f714044b1e0cc3f33add5da0f988b2a703 (patch) | |
tree | 576ffc45cb4972f25b2d59a595a9766cbebb38a6 /gcc | |
parent | 1b5295431ed7007f4ef149a99f438cf21d71e042 (diff) | |
download | gcc-8a1a19f714044b1e0cc3f33add5da0f988b2a703.zip gcc-8a1a19f714044b1e0cc3f33add5da0f988b2a703.tar.gz gcc-8a1a19f714044b1e0cc3f33add5da0f988b2a703.tar.bz2 |
diagnostics: move gcc/diagnostic-color.{h,cc} to gcc/diagnostics/color.{h,cc}
No functional change intended.
gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Replace diagnostic-color.o with
diagnostics/color.o.
(PLUGIN_HEADERS): Remove diagnostic-color.h in favor of glob.
* common.opt: Update for move of diagnostic-color.h to
diagnostics/color.h.
* diagnostic.cc: Likewise.
* diagnostic-color.cc: Move to...
* diagnostics/color.cc: ...here.
* diagnostic-color.h: Move to...
* diagnostics/color.h: ...here.
* diagnostics/edit-context.cc: Update for move of
diagnostic-color.h to diagnostics/color.h.
* diagnostics/output-spec.cc: Likewise.
* diagnostics/paths-output.cc: Likewise.
* diagnostics/source-printing.cc: Likewise.
* diagnostics/text-sink.cc: Likewise.
* libgdiagnostics.cc: Likewise.
* opts.cc: Likewise.
* pretty-print-markup.h: Likewise.
* pretty-print.cc: Likewise.
* selftest-run-tests.cc: Likewise.
* selftest.h: Likewise.
* text-art/style.cc: Likewise.
gcc/cp/ChangeLog:
* error.cc: Update for move of diagnostic-color.h to
diagnostics/color.h.
gcc/fortran/ChangeLog:
* error.cc: Update for move of diagnostic-color.h to
diagnostics/color.h.
gcc/m2/ChangeLog:
* gm2-gcc/m2color.cc: Update for move of diagnostic-color.h to
diagnostics/color.h.
gcc/testsuite/ChangeLog:
* gcc.dg/plugin/analyzer_cpython_plugin.cc: Update for move of
diagnostic-color.h to diagnostics/color.h.
* gcc.dg/plugin/analyzer_kernel_plugin.cc: Likewise.
* gcc.dg/plugin/analyzer_known_fns_plugin.cc: Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/common.opt | 2 | ||||
-rw-r--r-- | gcc/cp/error.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostic.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/color.cc (renamed from gcc/diagnostic-color.cc) | 4 | ||||
-rw-r--r-- | gcc/diagnostics/color.h (renamed from gcc/diagnostic-color.h) | 6 | ||||
-rw-r--r-- | gcc/diagnostics/edit-context.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/output-spec.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/paths-output.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/source-printing.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/text-sink.cc | 2 | ||||
-rw-r--r-- | gcc/fortran/error.cc | 2 | ||||
-rw-r--r-- | gcc/libgdiagnostics.cc | 2 | ||||
-rw-r--r-- | gcc/m2/gm2-gcc/m2color.cc | 2 | ||||
-rw-r--r-- | gcc/opts.cc | 2 | ||||
-rw-r--r-- | gcc/pretty-print-markup.h | 2 | ||||
-rw-r--r-- | gcc/pretty-print.cc | 2 | ||||
-rw-r--r-- | gcc/selftest-run-tests.cc | 2 | ||||
-rw-r--r-- | gcc/selftest.h | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc | 2 | ||||
-rw-r--r-- | gcc/text-art/style.cc | 2 |
23 files changed, 28 insertions, 27 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 820cef5..e19f46e 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1852,9 +1852,10 @@ OBJS = \ # Objects in libcommon.a, potentially used by all host binaries and with # no target dependencies. -OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \ +OBJS-libcommon = diagnostic-spec.o diagnostic.o \ diagnostic-global-context.o \ diagnostics/buffering.o \ + diagnostics/color.o \ diagnostics/digraphs.o \ diagnostics/edit-context.o \ diagnostics/output-spec.o \ @@ -4075,7 +4076,7 @@ PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ fold-const.h fold-const-call.h tree-cfg.h tree-into-ssa.h tree-ssanames.h \ print-tree.h varasm.h context.h tree-phinodes.h stor-layout.h \ ssa-iterators.h $(RESOURCE_H) tree-cfgcleanup.h attribs.h calls.h \ - cfgexpand.h diagnostic-color.h gcc-symtab.h gimple-builder.h gimple-low.h \ + cfgexpand.h gcc-symtab.h gimple-builder.h gimple-low.h \ gimple-walk.h gimplify-me.h pass_manager.h print-rtl.h stmt.h \ tree-dfa.h tree-hasher.h tree-nested.h tree-object-size.h tree-outof-ssa.h \ tree-parloops.h tree-ssa-address.h tree-ssa-coalesce.h tree-ssa-dom.h \ diff --git a/gcc/common.opt b/gcc/common.opt index d68d7d8..0c9d010 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1447,7 +1447,7 @@ Driver Common Joined RejectNegative Var(flag_diagnostics_show_color) Enum(diagno ; Required for these enum values. SourceInclude -diagnostic-color.h +diagnostics/color.h Enum Name(diagnostic_color_rule) Type(int) diff --git a/gcc/cp/error.cc b/gcc/cp/error.cc index ea1d682..c432388 100644 --- a/gcc/cp/error.cc +++ b/gcc/cp/error.cc @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "cp-tree.h" #include "stringpool.h" #include "tree-diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "langhooks-def.h" #include "intl.h" #include "cxx-pretty-print.h" diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index 4d1b253..c6e5523 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -31,7 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "intl.h" #include "backtrace.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostic-url.h" #include "diagnostics/metadata.h" #include "diagnostics/paths.h" diff --git a/gcc/diagnostic-color.cc b/gcc/diagnostics/color.cc index e95aaeb..68a50f2 100644 --- a/gcc/diagnostic-color.cc +++ b/gcc/diagnostics/color.cc @@ -19,7 +19,7 @@ #include "config.h" #define INCLUDE_VECTOR #include "system.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostic-url.h" #include "label-text.h" @@ -522,7 +522,7 @@ test_color_dict_envvar_parsing () /* Run all of the selftests within this file. */ void -diagnostic_color_cc_tests () +diagnostics_color_cc_tests () { test_empty_color_dict (); test_default_color_dict (); diff --git a/gcc/diagnostic-color.h b/gcc/diagnostics/color.h index 8aeaa57..42b67eb 100644 --- a/gcc/diagnostic-color.h +++ b/gcc/diagnostics/color.h @@ -38,8 +38,8 @@ along with GCC; see the file COPYING3. If not see Written July 1992 by Mike Haertel. */ -#ifndef GCC_DIAGNOSTIC_COLOR_H -#define GCC_DIAGNOSTIC_COLOR_H +#ifndef GCC_DIAGNOSTICS_COLOR_H +#define GCC_DIAGNOSTICS_COLOR_H /* Whether to add color to diagnostics: o DIAGNOSTICS_COLOR_NO: never @@ -62,4 +62,4 @@ colorize_start (bool show_color, const char *name) return colorize_start (show_color, name, strlen (name)); } -#endif /* ! GCC_DIAGNOSTIC_COLOR_H */ +#endif /* ! GCC_DIAGNOSTICS_COLOR_H */ diff --git a/gcc/diagnostics/edit-context.cc b/gcc/diagnostics/edit-context.cc index e8c328d..4ca571b 100644 --- a/gcc/diagnostics/edit-context.cc +++ b/gcc/diagnostics/edit-context.cc @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "line-map.h" #include "diagnostics/edit-context.h" #include "pretty-print.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "selftest.h" namespace diagnostics { diff --git a/gcc/diagnostics/output-spec.cc b/gcc/diagnostics/output-spec.cc index 699b5ac..433f3af 100644 --- a/gcc/diagnostics/output-spec.cc +++ b/gcc/diagnostics/output-spec.cc @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see #include "version.h" #include "intl.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/sink.h" #include "diagnostics/html-sink.h" #include "diagnostics/text-sink.h" diff --git a/gcc/diagnostics/paths-output.cc b/gcc/diagnostics/paths-output.cc index 1815223..5ccc3b0 100644 --- a/gcc/diagnostics/paths-output.cc +++ b/gcc/diagnostics/paths-output.cc @@ -30,7 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "intl.h" #include "diagnostics/paths.h" #include "gcc-rich-location.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/event-id.h" #include "diagnostics/source-printing-effects.h" #include "pretty-print-markup.h" diff --git a/gcc/diagnostics/source-printing.cc b/gcc/diagnostics/source-printing.cc index abb6bb7..f187007 100644 --- a/gcc/diagnostics/source-printing.cc +++ b/gcc/diagnostics/source-printing.cc @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "intl.h" #include "backtrace.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "gcc-rich-location.h" #include "text-range-label.h" #include "selftest.h" diff --git a/gcc/diagnostics/text-sink.cc b/gcc/diagnostics/text-sink.cc index aad7cdd..a602e23 100644 --- a/gcc/diagnostics/text-sink.cc +++ b/gcc/diagnostics/text-sink.cc @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "version.h" #include "intl.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostic-url.h" #include "diagnostics/metadata.h" #include "diagnostics/paths.h" diff --git a/gcc/fortran/error.cc b/gcc/fortran/error.cc index e7e50a9..a9e99b4 100644 --- a/gcc/fortran/error.cc +++ b/gcc/fortran/error.cc @@ -31,7 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "gfortran.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "tree-diagnostic.h" /* tree_diagnostics_defaults */ #include "diagnostics/text-sink.h" diff --git a/gcc/libgdiagnostics.cc b/gcc/libgdiagnostics.cc index 389a11d..868f9db 100644 --- a/gcc/libgdiagnostics.cc +++ b/gcc/libgdiagnostics.cc @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "intl.h" #include "diagnostic.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostic-url.h" #include "diagnostics/metadata.h" #include "diagnostics/paths.h" diff --git a/gcc/m2/gm2-gcc/m2color.cc b/gcc/m2/gm2-gcc/m2color.cc index fd30f46..a638d7c 100644 --- a/gcc/m2/gm2-gcc/m2color.cc +++ b/gcc/m2/gm2-gcc/m2color.cc @@ -23,7 +23,7 @@ along with GNU Modula-2; see the file COPYING3. If not see #include "m2color.h" #include "gcc-consolidation.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" char * diff --git a/gcc/opts.cc b/gcc/opts.cc index 57f9f19..c118397 100644 --- a/gcc/opts.cc +++ b/gcc/opts.cc @@ -31,7 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "common/common-target.h" #include "spellcheck.h" #include "opt-suggestions.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/sink.h" #include "version.h" #include "selftest.h" diff --git a/gcc/pretty-print-markup.h b/gcc/pretty-print-markup.h index 6c0719d..e4346f1 100644 --- a/gcc/pretty-print-markup.h +++ b/gcc/pretty-print-markup.h @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_PRETTY_PRINT_MARKUP_H #define GCC_PRETTY_PRINT_MARKUP_H -#include "diagnostic-color.h" +#include "diagnostics/color.h" class pp_token_list; diff --git a/gcc/pretty-print.cc b/gcc/pretty-print.cc index 94d1dc6..77d40ec 100644 --- a/gcc/pretty-print.cc +++ b/gcc/pretty-print.cc @@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "pretty-print-format-impl.h" #include "pretty-print-markup.h" #include "pretty-print-urlifier.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/event-id.h" #include "diagnostic-highlight-colors.h" #include "auto-obstack.h" diff --git a/gcc/selftest-run-tests.cc b/gcc/selftest-run-tests.cc index b442f53..f88c1cf 100644 --- a/gcc/selftest-run-tests.cc +++ b/gcc/selftest-run-tests.cc @@ -98,7 +98,7 @@ selftest::run_tests () /* Higher-level tests, or for components that other selftests don't rely on. */ - diagnostic_color_cc_tests (); + diagnostics_color_cc_tests (); diagnostics_source_printing_cc_tests (); diagnostics_html_sink_cc_tests (); diagnostics_sarif_sink_cc_tests (); diff --git a/gcc/selftest.h b/gcc/selftest.h index 99a574b..06ce4a0 100644 --- a/gcc/selftest.h +++ b/gcc/selftest.h @@ -221,7 +221,7 @@ extern void bitmap_cc_tests (); extern void cgraph_cc_tests (); extern void convert_cc_tests (); extern void dbgcnt_cc_tests (); -extern void diagnostic_color_cc_tests (); +extern void diagnostics_color_cc_tests (); extern void diagnostics_digraphs_cc_tests (); extern void diagnostics_html_sink_cc_tests (); extern void diagnostics_lazy_paths_cc_tests (); diff --git a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc index fe59b72..01ab766 100644 --- a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc +++ b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc @@ -23,7 +23,7 @@ #include "target.h" #include "fold-const.h" #include "tree-pretty-print.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/metadata.h" #include "tristate.h" #include "bitmap.h" diff --git a/gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc b/gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc index bbcdb7a..fc282a7 100644 --- a/gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc +++ b/gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc @@ -23,7 +23,7 @@ #include "target.h" #include "fold-const.h" #include "tree-pretty-print.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/metadata.h" #include "tristate.h" #include "bitmap.h" diff --git a/gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc b/gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc index 1c0cc60..44fcf37 100644 --- a/gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc +++ b/gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc @@ -23,7 +23,7 @@ #include "target.h" #include "fold-const.h" #include "tree-pretty-print.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" #include "diagnostics/metadata.h" #include "tristate.h" #include "bitmap.h" diff --git a/gcc/text-art/style.cc b/gcc/text-art/style.cc index ffc75b6..40886d6 100644 --- a/gcc/text-art/style.cc +++ b/gcc/text-art/style.cc @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "text-art/selftests.h" #include "text-art/types.h" #include "color-macros.h" -#include "diagnostic-color.h" +#include "diagnostics/color.h" using namespace text_art; |