OSDN Git Service

* diagnostic.c (sorry): Increment sorrycount before saving the
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2001 20:13:55 +0000 (20:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2001 20:13:55 +0000 (20:13 +0000)
        buffer state.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48005 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/diagnostic.c

index f77017a..7eb9f77 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-14  Jason Merrill  <jason@redhat.com>
+
+       * diagnostic.c (sorry): Increment sorrycount before saving the
+       buffer state.
+
 Fri Dec 14 19:53:23 CET 2001  Jan Hubicka  <jh@suse.cz>
 
        * i386.md (sqrt?f): Fix conditionals.
index 417e8b3..d3b5ea1 100644 (file)
@@ -1049,9 +1049,9 @@ sorry VPARAMS ((const char *msgid, ...))
   VA_OPEN (ap, msgid);
   VA_FIXEDARG (ap, const char *, msgid);
 
+  ++sorrycount;
   os = output_buffer_state (diagnostic_buffer);
 
-  ++sorrycount;
   output_set_prefix
     (diagnostic_buffer, context_as_prefix (input_filename, lineno, 0));
   output_printf (diagnostic_buffer, "sorry, not implemented: ");