This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] caret diagnostics
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: Robert Dewar <dewar at adacore dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, Tom Tromey <tromey at redhat dot com>, Aldy Hernandez <aldyh at redhat dot com>, dberlin at dberlin dot org, jakub at redhat dot com, gcc at gcc dot gnu dot org, gdr at integrable-solutions dot net, Chris Lattner <clattner at apple dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 14 Aug 2008 12:05:38 -0700
- Subject: Re: [PATCH] caret diagnostics
- References: <6c33472e0808140340o2a56b9f4n149025bfa8426331@mail.gmail.com> <Pine.LNX.4.64.0808141209170.24903@digraph.polyomino.org.uk> <6c33472e0808140527i158255d9hdbc677bd0870cbc1@mail.gmail.com> <Pine.LNX.4.64.0808141234450.24903@digraph.polyomino.org.uk> <6c33472e0808140556y1f8975boaf41babaeec39f98@mail.gmail.com> <Pine.LNX.4.64.0808141338160.25519@digraph.polyomino.org.uk> <6c33472e0808140741hb83b278jad9b1a5b15e8ab02@mail.gmail.com> <48A4468B.3050605@adacore.com> <6c33472e0808140822n3006c740ke28463a18951677b@mail.gmail.com> <48A47CD0.9020802@codesourcery.com> <6c33472e0808141159s49f0d916l3d6cc8677dc80acb@mail.gmail.com>
Manuel López-Ibáñez wrote:
The locations are as wrong now as they will be after enabling caret
diagnostics. The only difference is that no one pays attention right
now because that would require to enable -fshow-column and count
column numbers. So I am certainly not "breaking the compiler and
hoping that other developers will fix it".
OK, instead of "break", I will say that you are hoping to change the
user-visible behavior in a way that makes a current limitation obvious,
in the hope that will prod people to fix it. I don't think that's
appropriate.
Having cc1 print a statistic (when not passed "-quiet") saying "I got
error messages wrong 100 times in this translation unit" would be fine
(if it were possible to compute) since it wouldn't get in anyone's way.
Your change will inconvenience people.
Please attack the problem directly, by working with others to improve
the location information in the compiler. My experience has been that
if you get the ball rolling, other people will get behind and help, when
they see that the problem is tractable.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713