[PATCH] Speeding up delta by -fatal-errors

Zack Weinberg zack@codesourcery.com
Wed Apr 7 10:29:00 GMT 2004


Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:

> tramp3d-v3.cpp:1990: error: expected unqualified-id before "template"
>
> Internal compiler error: Error reporting routines re-entered.
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>
> i.e. calling real_abort() doesn't work - though it should just dispatch to
> abort().  gcc seems to be overly clever here.

That's bizarre.  Don't know what's going on there.

> Would instead something like
>
>     ...
>     case DK_ERROR:
>     case DK_SORRY:
>       if (context->abort_on_error)
>         real_abort ();
>       if (flag_fatal_errors)
>         {
>           fnotice (stderr, "compilation terminated after first error (as
> requested).\n");
>           exit (FATAL_EXIT_CODE);
>         }
>       break;
>     ...
>
> be ok?

This is what I had in mind, yes.  Probably better with a shorter
message though.

zw



More information about the Gcc-patches mailing list