* diagnostic.c (_fatal_insn): Decrement errorcount.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sun, 18 Feb 2001 15:17:36 +0000 (15:17 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 18 Feb 2001 15:17:36 +0000 (10:17 -0500)
From-SVN: r39834

gcc/ChangeLog
gcc/diagnostic.c

index de3a604f816de62dd15bff977dd9484f6cda7bf2..a24b6ccc9bdaffaa147894b1c629e1e2cbd2c78f 100644 (file)
@@ -1,5 +1,7 @@
 Sun Feb 18 09:30:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * diagnostic.c (_fatal_insn): Decrement errorcount.
+
        * invoke.texi (-I): Add note avoiding use for system header files.
 
        * rtl.h (add_clobbers): Remove duplicate declaration.
index 11039403e27f81e3451dcd1266a2609efcfc5eff..32688b39f088dcd73ad806a0bf1a42bcfe8ea2a4 100644 (file)
@@ -1486,6 +1486,11 @@ _fatal_insn (msgid, insn, file, line, function)
      const char *function;
 {
   error ("%s", msgid);
+
+  /* The above incremented error_count, but isn't an error that we want to
+     count, so reset it here.  */
+  errorcount--;
+
   debug_rtx (insn);
   fancy_abort (file, line, function);
 }