aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-06-25 20:26:35 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-06-25 20:26:35 -0400
commit3800a78a767f463bed6948c640eee4250781e62e (patch)
treeed89e73fa119f654290c78a6bb3f277805ac5988 /gcc/gcov-io.h
parentd681c5211e613c64d149e734b15cdcf7d542342e (diff)
downloadgcc-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/gcov-io.h')
0 files changed, 0 insertions, 0 deletions