http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44782
--- Comment #2 from Nathan Froyd <froydnj at gcc dot gnu.org> 2010-11-12 03:38:19 UTC --- 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