aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/lex.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 90011a3..5a2e00c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-05 Dave Brolley <brolley@cygnus.com>
+
+ * lex.c (errorcount): Declare it.
+ (finish_parse): Update errorcount for when using CPPLIB.
+
1999-07-05 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (IS_AGGR_TYPE): Include instantiated template template
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 303306a..2310345 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -111,6 +111,7 @@ char *inline_text_firstobj;
extern cpp_reader parse_in;
extern cpp_options parse_options;
extern unsigned char *yy_cur, *yy_lim;
+extern int errorcount;
#else
FILE *finput;
#endif
@@ -881,6 +882,7 @@ finish_parse ()
{
#if USE_CPPLIB
cpp_finish (&parse_in);
+ errorcount += parse_in.errors;
#else
fclose (finput);
#endif