PATCH for C++ use of errorcount, etc.

Mark Mitchell mark@codesourcery.com
Mon Aug 2 17:15:00 GMT 1999


Now that the middle-end declares errorcount, we don't need to in the
C++ front-end. 

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-08-02  Mark Mitchell  <mark@codesourcery.com>

	* lex.c (errorcount, sorrycount): Don't declare.
	* repo.c (errorcount, sorrycount): Likewise.
	* typeck2.c (errorcount, sorrycount): Likewise.

Index: lex.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/lex.c,v
retrieving revision 1.124
diff -c -p -r1.124 lex.c
*** lex.c	1999/07/26 22:23:59	1.124
--- lex.c	1999/08/03 00:09:19
*************** extern cpp_reader  parse_in;
*** 112,118 ****
  extern cpp_options parse_options;
  extern unsigned char *yy_cur, *yy_lim;
  extern enum cpp_token cpp_token;
- extern int errorcount;
  #else
  FILE *finput;
  #endif
--- 112,117 ----
*************** lang_init ()
*** 415,421 ****
  void
  lang_finish ()
  {
-   extern int errorcount, sorrycount;
    if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount);
  }
  
--- 414,419 ----
Index: repo.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/repo.c,v
retrieving revision 1.18
diff -c -p -r1.18 repo.c
*** repo.c	1999/03/26 07:44:49	1.18
--- repo.c	1999/08/03 00:09:24
*************** static FILE *repo_file;
*** 50,56 ****
  static char *old_args, *old_dir, *old_main;
  
  extern int flag_use_repository;
- extern int errorcount, sorrycount;
  extern struct obstack temporary_obstack;
  extern struct obstack permanent_obstack;
  
--- 50,55 ----
Index: typeck2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/typeck2.c,v
retrieving revision 1.56
diff -c -p -r1.56 typeck2.c
*** typeck2.c	1999/07/26 08:18:12	1.56
--- typeck2.c	1999/08/03 00:09:26
*************** Boston, MA 02111-1307, USA.  */
*** 40,48 ****
  static tree process_init_constructor PROTO((tree, tree, tree *));
  static void ack PVPROTO ((const char *, ...)) ATTRIBUTE_PRINTF_1;
  
- extern int errorcount;
- extern int sorrycount;
- 
  /* Print an error message stemming from an attempt to use
     BASETYPE as a base class for TYPE.  */
  
--- 40,45 ----


More information about the Gcc-patches mailing list