diagnostic.c (internal_error): Do ICE suppression only when ENABLE_CHECKING is not defined.

* diagnostic.c (internal_error): Do ICE suppression only
	when ENABLE_CHECKING is not defined.

From-SVN: r49151
This commit is contained in:
Zack Weinberg 2002-01-23 19:34:08 +00:00 committed by Zack Weinberg
parent c3d5c3faeb
commit a63bea75b1
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2002-01-23 Zack Weinberg <zack@codesourcery.com>
* diagnostic.c (internal_error): Do ICE suppression only
when ENABLE_CHECKING is not defined.
* c-typeck.c (require_complete_type): Return error_mark_node
if type is error_mark_node.

View File

@ -1221,12 +1221,14 @@ internal_error VPARAMS ((const char *msgid, ...))
if (diagnostic_lock)
error_recursion ();
#ifndef ENABLE_CHECKING
if (errorcount > 0 || sorrycount > 0)
{
fnotice (stderr, "%s:%d: confused by earlier errors, bailing out\n",
input_filename, lineno);
exit (FATAL_EXIT_CODE);
}
#endif
if (internal_error_function != 0)
(*internal_error_function) (_(msgid), &ap);