diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 03:38:15 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 03:38:15 +0000 |
commit | 566d7c74da1398124a7c4af3c284b8b4d992b9c0 (patch) | |
tree | c56e28b52155f9b2ee4a677a9f4053bfc8c50f83 /gcc/common.opt | |
parent | e6b16ad2949ab00bc64475d6785f2b0d6c63e440 (diff) | |
download | gcc-566d7c74da1398124a7c4af3c284b8b4d992b9c0.tar.gz |
gcc/
PR c/44782
* common.opt (fmax-errors=): New option.
* opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
* diagnostic.h (struct diagnostic_context): Add max_errors field.
* diagnostic.c (diagnostic_initialize): Initialize it.
(diagnostic_action_after_output): Exit if more than max_errors
have been output.
* doc/invoke.texi (Warning Options): Add -fmax-errors.
(-fmax-errors): Document.
gcc/fortran/
PR c/44782
* options.c (gfc_post_options): Initialize gfc_option.max_errors.
(gfc_handle_option) [OPT_fmax_errors_]: Remove.
* lang.opt (fmax-errors=): Remove.
gcc/testsuite/
PR c/44782
* c-c++-common/fmax-errors.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 85eaa37bff3..d9006eec403 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1170,6 +1170,10 @@ fmath-errno Common Report Var(flag_errno_math) Init(1) Optimization Set errno after built-in math functions +fmax-errors= +Common Joined RejectNegative UInteger Var(flag_max_errors) +-fmax-errors=<number> Maximum number of errors to report + fmem-report Common Report Var(mem_report) Report on permanent memory allocation |