This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re:PR26061 error and warning counts
- From: Geoffrey Keating <geoffk at apple dot com>
- To: lopezibanez at gmail dot com
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 2 Jul 2007 17:45:02 -0700
- Subject: Re:PR26061 error and warning counts
Hi Manuel,
PR middle-end/26061
* toplev.c (do_compile): Print error and warning counts.
Doing this will certainly break many tools which parse the output of
GCC, especially in the case of a successful compilation which
produced some warnings. I think, though, that it would be safe to
produce one extra notice in the case of a compilation which produced
errors, saying how many errors were output; that would help in the
case where the last few hundred messages from GCC are warnings and
the user wonders why their build failed. It should be combined with
the message we already have about 'treating warnings about errors
because of -Werror'.
I'm hard-pressed to think of a reason why, if this is implemented,
you would want to be able to switch it off, so I see no reason to
have a flag (unless someone else thinks of a reason).Attachment:
smime.p7s
Description: S/MIME cryptographic signature