[RFC] Speeding up delta by -fatal-errors

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Tue Apr 6 13:50:00 GMT 2004


Hi!

To speed up automatically reducing testcases with delta we don't
currently have something like -fatal-errors which exit on the first
error occoured, but we rather keep going.  So would something along
the simple approach below be acceptable?  (Plus adding the -fatal-errors
switch and documentation, of course)  Any better ideas?  Do we even have
something like this already?

Thanks,

Richard.

--- ../../gcc3.4/gcc/errors.c	Tue Oct  7 22:06:37 2003
+++ errors.c	Tue Apr  6 15:45:51 2004
@@ -64,6 +64,8 @@ error (const char *format, ...)
   fputc('\n', stderr);

   have_error = 1;
+  if (flag_fatal_errors)
+    exit (FATAL_EXIT_CODE);
 }




More information about the Gcc mailing list