Single error mode

Richard Guenther richard.guenther@gmail.com
Wed Sep 8 17:51:00 GMT 2004


On Wed, 8 Sep 2004 18:47:47 +0200, Piotr Wyderski <piotr.wyderski@wp.pl> wrote:
> Hello,
> 
> GCC contains a recovering parser -- when a programmer
> modify a large piece of code and try to compile it, the
> compiler tries to mask errors (to display as many errors
> as possible). However, this feature is often burdensome,
> because the compiler generates many spurious errors.
> So, could you please extend GCC by adding a flag called
> "-fno-error-recovery" or similarly, which would tell the
> compiler that it should display only the first error message
> and stop parsing immediately? Recovering should be enabled
> by default.

You can use -Wfatal-errors on mainline.

Richard.



More information about the Gcc mailing list