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 | 1b5295431ed7007f4ef149a99f438cf21d71e042 (patch) | |
tree | 3ed7c0369214ef03dd41853d0df2d4dd5f5d65db /gcc | |
parent | 783004835b47787bda40542f74522315e573a271 (diff) | |
download | gcc-1b5295431ed7007f4ef149a99f438cf21d71e042.zip gcc-1b5295431ed7007f4ef149a99f438cf21d71e042.tar.gz gcc-1b5295431ed7007f4ef149a99f438cf21d71e042.tar.bz2 |
diagnostics: move gcc/selftest-diagnostic.{h,cc} -> gcc/diagnostics/selftest-context.{h,cc}
No functional change intended.
gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Replace selftest-diagnostic.o with
diagnostics/selftest-context.o.
* diagnostic.cc: Update for move of selftest-diagnostic.h to
diagnostics/selftest-context.h.
* diagnostics/html-sink.cc: Likewise.
* diagnostics/lazy-paths.cc: Likewise.
* diagnostics/output-spec.cc: Likewise.
* diagnostics/paths-output.cc: Likewise.
* diagnostics/sarif-sink.cc: Likewise.
* selftest-diagnostic.cc: Move to...
* diagnostics/selftest-context.cc: ...here and update for move of
header file.
* selftest-diagnostic.h: Move to...
* diagnostics/selftest-context.h: ...here.
* diagnostics/source-printing.cc: Update for move of
selftest-diagnostic.h to diagnostics/selftest-context.h.
gcc/c-family/ChangeLog:
* c-format.cc: Update for move of selftest-diagnostic.h to
diagnostics/selftest-context.h.
gcc/testsuite/ChangeLog:
* gcc.dg/plugin/expensive_selftests_plugin.cc: Update for move of
selftest-diagnostic.h to diagnostics/selftest-context.h.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/Makefile.in | 3 | ||||
-rw-r--r-- | gcc/c-family/c-format.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostic.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/html-sink.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/lazy-paths.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/sarif-sink.cc | 2 | ||||
-rw-r--r-- | gcc/diagnostics/selftest-context.cc (renamed from gcc/selftest-diagnostic.cc) | 2 | ||||
-rw-r--r-- | gcc/diagnostics/selftest-context.h (renamed from gcc/selftest-diagnostic.h) | 6 | ||||
-rw-r--r-- | gcc/diagnostics/source-printing.cc | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc | 2 |
12 files changed, 15 insertions, 14 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a140d16..820cef5 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1868,6 +1868,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \ diagnostics/source-printing.o \ diagnostics/state-graphs.o \ diagnostics/state-graphs-to-dot.o \ + diagnostics/selftest-context.o \ diagnostics/selftest-logical-locations.o \ diagnostics/selftest-paths.o \ graphviz.o pex.o \ @@ -1876,7 +1877,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \ xml.o \ sbitmap.o \ vec.o input.o hash-table.o ggc-none.o memory-block.o \ - selftest.o selftest-diagnostic.o sort.o \ + selftest.o sort.o \ selftest-json.o \ text-art/box-drawing.o \ text-art/canvas.o \ diff --git a/gcc/c-family/c-format.cc b/gcc/c-family/c-format.cc index 80430e9..d75b05d 100644 --- a/gcc/c-family/c-format.cc +++ b/gcc/c-family/c-format.cc @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic.h" #include "substring-locations.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "builtins.h" #include "attribs.h" #include "c-family/c-type-mismatch.h" diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index ea606e3..4d1b253 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -42,7 +42,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostics/text-sink.h" #include "diagnostics/edit-context.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "opts.h" #include "cpplib.h" #include "text-art/theme.h" diff --git a/gcc/diagnostics/html-sink.cc b/gcc/diagnostics/html-sink.cc index 0785046..260f756 100644 --- a/gcc/diagnostics/html-sink.cc +++ b/gcc/diagnostics/html-sink.cc @@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostics/paths.h" #include "diagnostics/client-data-hooks.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "pretty-print-format-impl.h" #include "pretty-print-urlifier.h" #include "diagnostics/edit-context.h" diff --git a/gcc/diagnostics/lazy-paths.cc b/gcc/diagnostics/lazy-paths.cc index c30386f..322ad78 100644 --- a/gcc/diagnostics/lazy-paths.cc +++ b/gcc/diagnostics/lazy-paths.cc @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic.h" #include "diagnostics/lazy-paths.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "simple-diagnostic-path.h" #include "gcc-rich-location.h" #include "diagnostics/text-sink.h" diff --git a/gcc/diagnostics/output-spec.cc b/gcc/diagnostics/output-spec.cc index ecfa8e7..699b5ac 100644 --- a/gcc/diagnostics/output-spec.cc +++ b/gcc/diagnostics/output-spec.cc @@ -38,7 +38,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostics/text-sink.h" #include "diagnostics/sarif-sink.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "pretty-print-markup.h" #include "diagnostics/output-spec.h" diff --git a/gcc/diagnostics/paths-output.cc b/gcc/diagnostics/paths-output.cc index c409cce..1815223 100644 --- a/gcc/diagnostics/paths-output.cc +++ b/gcc/diagnostics/paths-output.cc @@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostics/source-printing-effects.h" #include "pretty-print-markup.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "diagnostics/selftest-paths.h" #include "text-art/theme.h" #include "diagnostics/text-sink.h" diff --git a/gcc/diagnostics/sarif-sink.cc b/gcc/diagnostics/sarif-sink.cc index 2289172..2fafb41 100644 --- a/gcc/diagnostics/sarif-sink.cc +++ b/gcc/diagnostics/sarif-sink.cc @@ -44,7 +44,7 @@ along with GCC; see the file COPYING3. If not see #include "ordered-hash-map.h" #include "sbitmap.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "diagnostics/selftest-source-printing.h" #include "selftest-json.h" #include "text-range-label.h" diff --git a/gcc/selftest-diagnostic.cc b/gcc/diagnostics/selftest-context.cc index 3219498..918bd5e 100644 --- a/gcc/selftest-diagnostic.cc +++ b/gcc/diagnostics/selftest-context.cc @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic.h" #include "diagnostics/sink.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" /* The selftest code should entirely disappear in a production configuration, hence we guard all of it with #if CHECKING_P. */ diff --git a/gcc/selftest-diagnostic.h b/gcc/diagnostics/selftest-context.h index 6a52166..afbc661 100644 --- a/gcc/selftest-diagnostic.h +++ b/gcc/diagnostics/selftest-context.h @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ -#ifndef GCC_SELFTEST_DIAGNOSTIC_H -#define GCC_SELFTEST_DIAGNOSTIC_H +#ifndef GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H +#define GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H /* The selftest code should entirely disappear in a production configuration, hence we guard all of it with #if CHECKING_P. */ @@ -60,4 +60,4 @@ class test_diagnostic_context : public diagnostics::context #endif /* #if CHECKING_P */ -#endif /* GCC_SELFTEST_DIAGNOSTIC_H */ +#endif /* GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H */ diff --git a/gcc/diagnostics/source-printing.cc b/gcc/diagnostics/source-printing.cc index 7794dc2..abb6bb7 100644 --- a/gcc/diagnostics/source-printing.cc +++ b/gcc/diagnostics/source-printing.cc @@ -33,7 +33,7 @@ along with GCC; see the file COPYING3. If not see #include "gcc-rich-location.h" #include "text-range-label.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" #include "diagnostics/selftest-source-printing.h" #include "cpplib.h" #include "text-art/types.h" diff --git a/gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc b/gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc index 8abed14..c6fe301 100644 --- a/gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc +++ b/gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc @@ -8,7 +8,7 @@ #include "diagnostic.h" #include "diagnostics/edit-context.h" #include "selftest.h" -#include "selftest-diagnostic.h" +#include "diagnostics/selftest-context.h" int plugin_is_GPL_compatible; |