aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpperror.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-23 06:07:45 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-23 06:07:45 +0000
commitbdee42b16c0af056a289dbcb61ba70917ba7f83b (patch)
treed76b0e196a131afd496bdeff96688447c5f400bd /gcc/cpperror.c
parente67a7860dc6e7e763e1149e3c77b5d00d69a678a (diff)
downloadgcc-bdee42b16c0af056a289dbcb61ba70917ba7f83b.zip
gcc-bdee42b16c0af056a289dbcb61ba70917ba7f83b.tar.gz
gcc-bdee42b16c0af056a289dbcb61ba70917ba7f83b.tar.bz2
cpperror.c (_cpp_begin_message): No special casing of CPP_FATAL_LIMIT.
* cpperror.c (_cpp_begin_message): No special casing of CPP_FATAL_LIMIT. * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/. (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR. * cpplib.c (do_include_common): Use DL_ERROR. * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove. (DL_ICE): Renumber. * fix-header.c (read_scan_file): Update. From-SVN: r53765
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;
}