diff options
| author | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-06 10:08:25 +0000 |
|---|---|---|
| committer | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-06 10:08:25 +0000 |
| commit | e756ee845e359ef040dc51d97fd5976af5ed0d20 (patch) | |
| tree | ea4d47b696619c393a1a155718fc6966185c2aa3 | |
| parent | 3c93b69bcbecacee0835a4ed8774799291e49bc8 (diff) | |
| download | ppe42-gcc-e756ee845e359ef040dc51d97fd5976af5ed0d20.tar.gz ppe42-gcc-e756ee845e359ef040dc51d97fd5976af5ed0d20.zip | |
1999-07-05 Dave Brolley <brolley@cygnus.com>
* lex.c (errorcount): Declare it.
(finish_parse): Update errorcount for when using CPPLIB.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27955 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/lex.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90011a3b9e0..5a2e00cde72 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 303306a7967..2310345a2b0 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 |

