diagnostic.c (sorry): Increment sorrycount before saving the buffer state.
authorJason Merrill <jason@redhat.com>
Fri, 14 Dec 2001 20:13:55 +0000 (15:13 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Dec 2001 20:13:55 +0000 (15:13 -0500)
        * diagnostic.c (sorry): Increment sorrycount before saving the
        buffer state.

From-SVN: r48005

gcc/ChangeLog
gcc/diagnostic.c

index f77017a3c589bdb8ec430b6a222faefc3d6cf9bb..7eb9f7750331c3710c7776549c96c9c81e3d3b1a 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 417e8b31f38c9d18c214f2d0ef0d87c0495811a7..d3b5ea1ff7f4c6d62f2624b3c9ffa46cf4e13310 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: ");