This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r122570 - in /branches/gcc-4_2-branch/gcc: fort...
- From: brooks at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 05 Mar 2007 20:12:54 -0000
- Subject: r122570 - in /branches/gcc-4_2-branch/gcc: fort...
Author: brooks
Date: Mon Mar 5 20:12:53 2007
New Revision: 122570
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122570
Log:
fortran/
* 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.
testsuite/
* gfortran.dg/io_constraints_3.f90: Add -fmax-errors=50 option.
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/error.c
branches/gcc-4_2-branch/gcc/fortran/gfortran.h
branches/gcc-4_2-branch/gcc/fortran/invoke.texi
branches/gcc-4_2-branch/gcc/fortran/lang.opt
branches/gcc-4_2-branch/gcc/fortran/options.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/io_constraints_3.f90