This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26061] error and warning count
- From: "ismail at pardus dot org dot tr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2007 21:29:51 -0000
- Subject: [Bug middle-end/26061] error and warning count
- References: <bug-26061-12109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from ismail at pardus dot org dot tr 2007-01-26 21:29 -------
Maybe a better version could be like this,
--- gcc/toplev.c 2006-10-09 19:27:14.000000000 +0300
+++ gcc/toplev.c 2007-01-26 20:59:19.395519510 +0200
@@ -1975,6 +1975,12 @@
/* Language-specific end of compilation actions. */
lang_hooks.finish ();
+
+
+ /* Print error / warning counts. */
+ if ( errorcount || warningcount )
+ fprintf (stderr, "\n%s: *** %d errors, %d warnings",
+ progname, errorcount, warningcount);
}
/* Initialize the compiler, and compile the input file. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26061