aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 1103940..32688b3 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -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);
}