From: Gabriel Dos Reis Date: Tue, 10 Jul 2001 16:04:55 +0000 (+0000) Subject: diagnostic.c (finish_diagnostic): Rename to diagnostic_finish. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64dfaa76b383d88cb3ee825148d533f83fe51843;p=gcc.git diagnostic.c (finish_diagnostic): Rename to diagnostic_finish. * diagnostic.c (finish_diagnostic): Rename to diagnostic_finish. Make it take an 'output_buffer *'. Adjust calls thourghout. From-SVN: r43905 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c524a3fb3c..9bdce89d35c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-07-10 Gabriel Dos Reis + + * diagnostic.c (finish_diagnostic): Rename to + diagnostic_finish. Make it take an 'output_buffer *'. Adjust + calls thourghout. + 2001-07-10 Jason Merrill * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 8f400908ac6..14cd98647ff 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -59,7 +59,7 @@ Boston, MA 02111-1307, USA. */ #define diagnostic_msg output_buffer_text_cursor (diagnostic_buffer) /* Prototypes. */ -static void finish_diagnostic PARAMS ((void)); +static void diagnostic_finish PARAMS ((output_buffer *)); static void output_do_verbatim PARAMS ((output_buffer *, const char *, va_list *)); static void output_buffer_to_stream PARAMS ((output_buffer *)); @@ -986,7 +986,7 @@ diagnostic_for_decl (decl, msgid, args_ptr, warn) output_buffer_ptr_to_format_args (diagnostic_buffer) = args_ptr; output_buffer_text_cursor (diagnostic_buffer) = _(msgid); format_with_decl (diagnostic_buffer, decl); - finish_diagnostic (); + diagnostic_finish ((output_buffer *)global_dc); output_destroy_prefix (diagnostic_buffer); output_buffer_state (diagnostic_buffer) = os; @@ -1068,7 +1068,7 @@ fatal_io_error VPARAMS ((const char *msgid, ...)) output_buffer_ptr_to_format_args (diagnostic_buffer) = ≈ output_buffer_text_cursor (diagnostic_buffer) = _(msgid); output_format (diagnostic_buffer); - finish_diagnostic (); + diagnostic_finish ((output_buffer *)global_dc); output_buffer_state (diagnostic_buffer) = os; va_end (ap); exit (FATAL_EXIT_CODE); @@ -1176,7 +1176,7 @@ sorry VPARAMS ((const char *msgid, ...)) output_buffer_ptr_to_format_args (diagnostic_buffer) = ≈ output_buffer_text_cursor (diagnostic_buffer) = _(msgid); output_format (diagnostic_buffer); - finish_diagnostic (); + diagnostic_finish ((output_buffer *)global_dc); output_buffer_state (diagnostic_buffer) = os; va_end (ap); } @@ -1537,12 +1537,13 @@ warning VPARAMS ((const char *msgid, ...)) /* Flush diagnostic_buffer content on stderr. */ static void -finish_diagnostic () +diagnostic_finish (buffer) + output_buffer *buffer; { - output_buffer_to_stream (diagnostic_buffer); - clear_diagnostic_info (diagnostic_buffer); - fputc ('\n', output_buffer_attached_stream (diagnostic_buffer)); - fflush (output_buffer_attached_stream (diagnostic_buffer)); + output_buffer_to_stream (buffer); + clear_diagnostic_info (buffer); + fputc ('\n', output_buffer_attached_stream (buffer)); + fflush (output_buffer_attached_stream (buffer)); } /* Helper subroutine of output_verbatim and verbatim. Do the approriate @@ -1628,7 +1629,7 @@ report_diagnostic (dc) (*diagnostic_starter (dc)) (diagnostic_buffer, dc); output_format (diagnostic_buffer); (*diagnostic_finalizer (dc)) (diagnostic_buffer, dc); - finish_diagnostic (); + diagnostic_finish ((output_buffer *)global_dc); output_buffer_state (diagnostic_buffer) = os; } @@ -1644,7 +1645,7 @@ static void error_recursion () { if (diagnostic_lock < 3) - finish_diagnostic (); + diagnostic_finish ((output_buffer *)global_dc); fnotice (stderr, "Internal compiler error: Error reporting routines re-entered.\n");