gcc error listing

Neil Booth neil@daikokuya.demon.co.uk
Thu Jan 4 07:05:00 GMT 2001


Hegeman, Robert wrote:-

> Are there any command line switches, environment variables, etc. which
> affect the number of errors the gcc compiler will report before exiting?

For CPP at least, it's hard coded.

> I have looked carefully at the online help at file:/usr/freeware/info-html
> but have been unable to find any such controls.  Our problem is that the
> compiler (preprocessor?) is exiting after indicating only the first error
> encountered, forcing us to deal with errors one at a time.  A typical error
> has been an un-terminated macro call (i.e. a missing ")" ), from which I
> would think the compiler would recover.

Why?  How can the preprocessor guess how many tokens to swallow before
you intended to put a ')'?  Remember that macro invocations can, and
often do, span multiple lines.

If CPP cannot recover, the compiler proper has no hope.

Neil.


More information about the Gcc mailing list