diff options
author | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-06 10:07:41 +0000 |
---|---|---|
committer | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-06 10:07:41 +0000 |
commit | 3c93b69bcbecacee0835a4ed8774799291e49bc8 (patch) | |
tree | 64163e6590b16f54864a4eafb80c3f55fe521677 /gcc/c-lex.c | |
parent | abf4105459e40110807cb8ee24bfa457e75d1f91 (diff) | |
download | gcc-3c93b69bcbecacee0835a4ed8774799291e49bc8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ed825ee42fc..252888d3906 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 |