aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@cygnus.com>1999-07-06 10:07:41 +0000
committerDave Brolley <brolley@gcc.gnu.org>1999-07-06 06:07:41 -0400
commitd2164ac2e761e2d7f8b13fe58cf24320f99c9d11 (patch)
tree64163e6590b16f54864a4eafb80c3f55fe521677 /gcc/c-lex.c
parentcd12e6b44aa4e4309fbce4a71ccc4ecc581c8a0e (diff)
downloadgcc-d2164ac2e761e2d7f8b13fe58cf24320f99c9d11.zip
gcc-d2164ac2e761e2d7f8b13fe58cf24320f99c9d11.tar.gz
gcc-d2164ac2e761e2d7f8b13fe58cf24320f99c9d11.tar.bz2
c-lex.c (errorcount): Declare it.
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
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index ed825ee..252888d 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -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