summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-18 15:17:36 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-18 15:17:36 +0000
commitfd913460dfef9f504d8881379436393b01ed5064 (patch)
tree048d30bf06cee6487f68f9ce77c9038658d697e6 /gcc/diagnostic.c
parent6d66329bd15b44818847cf20cf6fbb756ac7c6ae (diff)
downloadgcc-fd913460dfef9f504d8881379436393b01ed5064.tar.gz
* diagnostic.c (_fatal_insn): Decrement errorcount.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39834 138bc75d-0d04-0410-961f-82ee72b054a4
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 11039403e27..32688b39f08 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);
}