clang: -ferror-limit=123: Stop emitting diagnostics after 123 errors have been produced. The default is 20, and the error limit can be disabled with -ferror-limit=0 (-ferror-limit=1 is equivalent to -Wfatal-errors)
Note Fortran has this feature already: -fmax-errors=<n> Maximum number of errors to report
Author: froydnj Date: Fri Nov 12 03:38:15 2010 New Revision: 166644 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166644 Log: 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. Added: trunk/gcc/testsuite/c-c++-common/fmax-errors.c Modified: trunk/gcc/ChangeLog trunk/gcc/common.opt trunk/gcc/diagnostic.c trunk/gcc/diagnostic.h trunk/gcc/doc/invoke.texi trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/lang.opt trunk/gcc/fortran/options.c trunk/gcc/opts.c trunk/gcc/testsuite/ChangeLog
Fixed.
*** Bug 20201 has been marked as a duplicate of this bug. ***