diagnostic.c (internal_error): Do ICE suppression only when ENABLE_CHECKING is not...
authorZack Weinberg <zack@codesourcery.com>
Wed, 23 Jan 2002 19:34:08 +0000 (19:34 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 23 Jan 2002 19:34:08 +0000 (19:34 +0000)
* diagnostic.c (internal_error): Do ICE suppression only
when ENABLE_CHECKING is not defined.

From-SVN: r49151

gcc/ChangeLog
gcc/diagnostic.c

index 2186f54714de5b55c25de20b64d86fa7cd45dd80..984781aca48d2af893ddd7d3f03429dae2b39cd7 100644 (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.
 
index e2f41fdc65058aae46e25f267219d26ccd14624c..4ff157d7ecb0ca47a61eb61952333358303a9256 100644 (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);