diff options
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 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 |