summaryrefslogtreecommitdiff
path: root/gcc/fortran/lang.opt
diff options
context:
space:
mode:
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-09 06:53:05 +0000
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-09 06:53:05 +0000
commitb6be0ac5f36ee3a787fdbde7e1957e85f1277c9d (patch)
treeaf8c557eb4fa405e1872a03c58213c649a3c9621 /gcc/fortran/lang.opt
parentac0788ff2fc1cfbee1814b8c19c1d7aaf623684b (diff)
downloadgcc-b6be0ac5f36ee3a787fdbde7e1957e85f1277c9d.tar.gz
* 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): Assign -fmax_errors value to gfc_option.max_errors. * error.c (gfc_increment_error_count): New function, which also checks whether the error count exceeds max_errors. (gfc_warning): Use it. (gfc_warning_now): Use it. (gfc_notify_std): Use it. (gfc_error): Use it. (gfc_error_now): Use it. (gfc_error_check): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/lang.opt')
-rw-r--r--gcc/fortran/lang.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt
index 1a19da41317..c055f14a4b3 100644
--- a/gcc/fortran/lang.opt
+++ b/gcc/fortran/lang.opt
@@ -169,6 +169,10 @@ ffree-line-length-
Fortran RejectNegative Joined UInteger
-ffree-line-length-<n> Use n as character line width in free mode
+fmax-errors=
+Fortran RejectNegative Joined UInteger
+-fmax-errors=<n> Maximum number of errors to report
+
fmax-identifier-length=
Fortran RejectNegative Joined UInteger
-fmax-identifier-length=<n> Maximum identifier length