toplev.h (errorcount): Declare.
authorMark Mitchell <mark@codesourcery.com>
Tue, 3 Aug 1999 00:07:52 +0000 (00:07 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 3 Aug 1999 00:07:52 +0000 (00:07 +0000)
* toplev.h (errorcount): Declare.
(warningcount): Likewise.
(sorrycount): Likewise.
* c-lex.c (errorcount): Don't declare.
* dwarf2out.c (errorcount): Don't declare.

From-SVN: r28426

gcc/ChangeLog
gcc/c-lex.c
gcc/dwarf2out.c
gcc/toplev.h

index 32d2aa7d375b2f3fe94583b9629fdb120db3b5a9..58d47e3ca2001aaf180eef015af182ad197bbc67 100644 (file)
@@ -1,3 +1,11 @@
+Mon Aug  2 17:10:24 1999  Mark Mitchell  <mark@codesourcery.com>
+
+       * toplev.h (errorcount): Declare.
+       (warningcount): Likewise.
+       (sorrycount): Likewise.
+       * c-lex.c (errorcount): Don't declare.
+       * dwarf2out.c (errorcount): Don't declare.
+
 Mon Aug  2 17:02:08 1999  Jason Merrill  <jason@yorick.cygnus.com>
 
        * config/libgloss.h: Add a note discouraging use with ELF.
index 52387f883e5955cfdadc4e324996d595572a67ba..049d5b27404332bb180220a4374f1b9b4990d296 100644 (file)
@@ -49,7 +49,6 @@ 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;
index 4e1ebee44adf68b70a533110902ee5f25d2c3cfe..a1e8ead9e89e71faedb3cafb91550481693a36fb 100644 (file)
@@ -8374,7 +8374,6 @@ gen_subprogram_die (decl, context_die)
             we should detect this case and ignore it.  For now, if we have
             already reported an error, any error at all, then assume that
             we got here because of a input error, not a dwarf2 bug.  */
-         extern int errorcount;
          if (errorcount)
            return;
          abort ();
index 3ffad1f5995826c86477b1fb1d853793405c0f81..49adb413cd22e95a9fc2d77d8dfd38531a2e1160 100644 (file)
@@ -115,4 +115,7 @@ extern void fnotice                 PROTO ((FILE *, const char *, ...))
 extern const char *trim_filename       PROTO ((const char *));
 extern int wrapup_global_declarations   PROTO ((union tree_node **, int));
 extern void check_global_declarations   PROTO ((union tree_node **, int));
+extern int errorcount;
+extern int warningcount;
+extern int sorrycount;
 #endif /* __GCC_TOPLEV_H */