[patch, fortran] Add -fmax-errors option to limit the number of errors emitted.
Bernhard Fischer
rep.nop@aon.at
Thu Nov 9 10:11:00 GMT 2006
On Wed, Nov 08, 2006 at 10:57:09PM -0800, Brooks Moses wrote:
>Steve Kargl wrote:
>For the record, though, this isn't due to RejectNegative, which is
>related to whether there's a "no-" version of the option. The reason
>this can never happen is that the UInteger option flag means to only
>allow unsigned integers.
Right. Typo on my part, sorry.
>+static void
>+gfc_increment_error_count (void)
>+{
>+ errors++;
>+ if ((gfc_option.max_errors != 0) && (errors >= gfc_option.max_errors))
>+ gfc_fatal_error ("Error count reached limit of %d.", gfc_option.max_errors);
Quick question wrt the punctuation. It seems that the majority but not
all of warning/error messages omit the trailing dot.
Should this be made consistent, either to add or to omit the
punctuation at the end of these messages?
More information about the Fortran
mailing list