[patch, fortran, 4.2] Backport -fmax-errors to 4.2.

Brooks Moses brooks.moses@codesourcery.com
Mon Mar 5 09:15:00 GMT 2007


The attached patches backport my -fmax-errors patch to 4.2, along with 
the documentation.

Currently regtesting on i686-pc-linux-gnu.  Ok to commit, assuming it 
passes?

-----------------------------------------------------------------
2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>

	* lang.opt: Add -fmax-errors= option.
	* gfortran.h (gfc_option_t): Add max_errors element.
	* options.c (gfc_init_options): Set max_errors default value
	to 25.
	(gfc_handle_options): Check -fmax_errors value, assign to
	gfc_option.max_errors.
	* error.c (gfc_increment_error_count): New function, which
	also checks whether the error count exceeds max_errors.
	(gfc_notify_std): Use it.
	(gfc_error): Use it.
	(gfc_error_now): Use it.
	(gfc_error_check): Use it.
	(gfc_warning): Reorder to match trunk.
	* invoke.texi: Added documentation for -fmax-errors option.

-----------------------------------------------------------------

- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-errors-doc42.diff
Type: text/x-patch
Size: 1068 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070305/399cb6e5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-errors42.diff
Type: text/x-patch
Size: 3672 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070305/399cb6e5/attachment-0001.bin>


More information about the Gcc-patches mailing list