[patch, fortran] Add -fmax-errors option to limit the number of errors emitted.
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu Nov 9 04:21:00 GMT 2006
On Wed, Nov 08, 2006 at 01:23:57PM -0800, Brooks Moses wrote:
> Bernhard Fischer wrote:
> >On Tue, Nov 07, 2006 at 01:29:29PM -0800, Brooks Moses wrote:
> >>+fmax-errors=
> >>+Fortran RejectNegative Joined UInteger
> >>+-fmax-errors=<n> Maximum number of errors to report
> >>+
> [...]
> >>+ case OPT_fmax_errors_:
> >
> >->+ if (value < 0)
> >
> >Due to RejectNegative this can never happen.
>
> Right, yes. I'll remove that redundant check from the final version of
> the patch.
>
With the change suggested by Bernhard, this is OK.
I'm almost tempted to suggest reducing the default error count
from 50 to 25. Once gfortran gets confused, bogus errors just
spew forth.
--
Steve
More information about the Fortran
mailing list