aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpperror.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpperror.c')
-rw-r--r--gcc/cpperror.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c
index 5ba7f4d..3e6b37c 100644
--- a/gcc/cpperror.c
+++ b/gcc/cpperror.c
@@ -92,8 +92,7 @@ _cpp_begin_message (pfile, code, line, column)
{
if (CPP_OPTION (pfile, inhibit_errors))
return 0;
- if (pfile->errors < CPP_FATAL_LIMIT)
- pfile->errors++;
+ pfile->errors++;
}
else if (CPP_OPTION (pfile, inhibit_warnings))
return 0;
@@ -102,14 +101,9 @@ _cpp_begin_message (pfile, code, line, column)
case DL_ERROR:
if (CPP_OPTION (pfile, inhibit_errors))
return 0;
- if (pfile->errors < CPP_FATAL_LIMIT)
- pfile->errors++;
- break;
-
- /* Fatal errors cannot be inhibited. */
- case DL_FATAL:
+ /* ICEs cannot be inhibited. */
case DL_ICE:
- pfile->errors = CPP_FATAL_LIMIT;
+ pfile->errors++;
break;
}