diff options
Diffstat (limited to 'gcc/diagnostic-global-context.cc')
-rw-r--r-- | gcc/diagnostic-global-context.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/diagnostic-global-context.cc b/gcc/diagnostic-global-context.cc index e82588e..bd299d0 100644 --- a/gcc/diagnostic-global-context.cc +++ b/gcc/diagnostic-global-context.cc @@ -37,7 +37,8 @@ diagnostic_context *global_dc = &global_diagnostic_context; /* Standard error reporting routines in increasing order of severity. */ /* Text to be emitted verbatim to the error message stream; this - produces no prefix and disables line-wrapping. Use rarely. */ + produces no prefix and disables line-wrapping. Use rarely. + It is ignored for machine-readable output formats. */ void verbatim (const char *gmsgid, ...) { @@ -45,8 +46,7 @@ verbatim (const char *gmsgid, ...) va_start (ap, gmsgid); text_info text (_(gmsgid), &ap, errno); - pp_format_verbatim (global_dc->m_printer, &text); - pp_newline_and_flush (global_dc->m_printer); + global_dc->report_verbatim (text); va_end (ap); } @@ -551,10 +551,8 @@ fnotice (FILE *file, const char *cmsgid, ...) emitting free-form text on stderr will lead to corrupt output. Skip the message for such cases. */ if (file == stderr && global_dc) - if (const diagnostic_output_format *output_format - = global_dc->get_output_format ()) - if (output_format->machine_readable_stderr_p ()) - return; + if (!global_dc->supports_fnotice_on_stderr_p ()) + return; va_list ap; |