diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-06-25 20:26:35 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-06-25 20:26:35 -0400 |
commit | 3800a78a767f463bed6948c640eee4250781e62e (patch) | |
tree | ed89e73fa119f654290c78a6bb3f277805ac5988 /gcc/tree-vect-loop.cc | |
parent | d681c5211e613c64d149e734b15cdcf7d542342e (diff) | |
download | gcc-3800a78a767f463bed6948c640eee4250781e62e.zip gcc-3800a78a767f463bed6948c640eee4250781e62e.tar.gz gcc-3800a78a767f463bed6948c640eee4250781e62e.tar.bz2 |
diagnostics: introduce diagnostic-global-context.cc
This moves all of the uses of global_dc within diagnostic.cc (including
the definition) to a new diagnostic-global-context.cc. My intent is to
make clearer those parts of our internal API that implicitly use
global_dc, and to perhaps avoid linking global_dc into a future
libdiagnostics.so.
No functional change intended.
gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Add diagnostic-global-context.o.
* diagnostic-global-context.cc: New file, taken from material in
diagnostic.cc.
* diagnostic.cc (global_diagnostic_context): Move to
diagnostic-global-context.cc.
(global_dc): Likewise.
(verbatim): Likewise.
(emit_diagnostic): Likewise.
(emit_diagnostic_valist): Likewise.
(emit_diagnostic_valist_meta): Likewise.
(inform): Likewise.
(inform_n): Likewise.
(warning): Likewise.
(warning_at): Likewise.
(warning_meta): Likewise.
(warning_n): Likewise.
(pedwarn): Likewise.
(permerror): Likewise.
(permerror_opt): Likewise.
(error): Likewise.
(error_n): Likewise.
(error_at): Likewise.
(error_meta): Likewise.
(sorry): Likewise.
(sorry_at): Likewise.
(seen_error): Likewise.
(fatal_error): Likewise.
(internal_error): Likewise.
(internal_error_no_backtrace): Likewise.
(fnotice): Likewise.
(auto_diagnostic_group::auto_diagnostic_group): Likewise.
(auto_diagnostic_group::~auto_diagnostic_group): Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions