This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc error listing


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]