https://gcc.gnu.org/g:3cff171b243f4d59b1b93a171050633f5eb5bf5e
commit r16-2761-g3cff171b243f4d59b1b93a171050633f5eb5bf5e Author: David Malcolm <dmalc...@redhat.com> Date: Mon Aug 4 10:45:30 2025 -0400 diagnostics: fix comment in buffering.h gcc/ChangeLog: * diagnostics/buffering.h: Update comment to refer to output sinks rather than output formats. Signed-off-by: David Malcolm <dmalc...@redhat.com> Diff: --- gcc/diagnostics/buffering.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/diagnostics/buffering.h b/gcc/diagnostics/buffering.h index c3ac070ba00b..9b86fee90fe8 100644 --- a/gcc/diagnostics/buffering.h +++ b/gcc/diagnostics/buffering.h @@ -36,7 +36,7 @@ class sink; A diagnostics::buffer can be: * flushed to the diagnostics::context, which issues - the diagnostics within the buffer to the output format + the diagnostics within the buffer to the output sinks and checks for limits such as -fmax-errors=, or * moved to another diagnostics::buffer, which moves the diagnostics @@ -45,13 +45,13 @@ class sink; source buffer, or * cleared, which discards any diagnostics within the buffer - without issuing them to the output format. + without issuing them to the output sinks. - Since a buffer needs to contain output-format-specific data, - it's not possible to change the output format of the + Since a buffer needs to contain sink-specific data, + it's not possible to change the output sink(s) of the diagnostics::context once any buffers are non-empty. - To simplify implementing output formats, it's not possible + To simplify implementing output sinks, it's not possible to change buffering on a diagnostics::context whilst within a diagnostic group. */