diff options
author | Jason Merrill <jason@redhat.com> | 2001-12-14 15:13:55 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-12-14 15:13:55 -0500 |
commit | 4ff8507ec570191d7cd27b4c595f42f124dea2a3 (patch) | |
tree | be3d1dccb11d4cffe408ae4765a4888f22bb2cd1 /gcc | |
parent | eec875422f79e536fcde443bfe8c0a01b260deb2 (diff) | |
download | gcc-4ff8507ec570191d7cd27b4c595f42f124dea2a3.zip gcc-4ff8507ec570191d7cd27b4c595f42f124dea2a3.tar.gz gcc-4ff8507ec570191d7cd27b4c595f42f124dea2a3.tar.bz2 |
diagnostic.c (sorry): Increment sorrycount before saving the buffer state.
* diagnostic.c (sorry): Increment sorrycount before saving the
buffer state.
From-SVN: r48005
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/diagnostic.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f77017a..7eb9f77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 417e8b3..d3b5ea1 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -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: "); |