c-lex.c (errorcount): Declare it.
authorDave Brolley <brolley@cygnus.com>
Tue, 6 Jul 1999 10:07:41 +0000 (10:07 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Tue, 6 Jul 1999 10:07:41 +0000 (06:07 -0400)
Tue Jul  6 13:06:01 1999  Dave Brolley  <brolley@cygnus.com>
* c-lex.c (errorcount): Declare it.
(finish_parse): Update errorcount when using CPPLIB.

From-SVN: r27954

gcc/ChangeLog
gcc/c-lex.c

index 2adae3282e1591f4889591821fb380ac4393a18d..3357330e71829e77cc72576527fe42aa33de25f0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jul  6 13:06:01 1999  Dave Brolley  <brolley@cygnus.com>
+
+       * c-lex.c (errorcount): Declare it.
+       (finish_parse): Update errorcount when using CPPLIB.
+
 1999-07-06  Bruce Korb  <ddsinc09@ix.netcom.com>
 
        * fixinc/inclhack.def(end_else_label): Double the backslash so
index ed825ee42fcb93a7df66857ada07d1daa18fbdaa..252888d39062a82ff5f46e9accbfb8c2086ed7da 100644 (file)
@@ -49,6 +49,7 @@ Boston, MA 02111-1307, USA.  */
 #include "cpplib.h"
 extern cpp_reader  parse_in;
 extern cpp_options parse_options;
+extern int errorcount;
 #else
 /* Stream for reading from the input file.  */
 FILE *finput;
@@ -258,6 +259,7 @@ finish_parse ()
 {
 #if USE_CPPLIB
   cpp_finish (&parse_in);
+  errorcount += parse_in.errors;
 #else
   fclose (finput);
 #endif