This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, C] Fix format warnings
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Apr 2005 17:46:50 +0200 (CEST)
- Subject: Re: [PATCH, C] Fix format warnings
On Tue, 26 Apr 2005, Joseph S. Myers wrote:
> On Tue, 26 Apr 2005, Richard Guenther wrote:
>
> > As soon as &a is canonicalized to &a[0] currently existing testcases
> > fail and get fixed by this patch. Without a patch it is not possible
> > to construct a testcase with &a[0] or &a[1] as this is emitted by
> > the C frontend as &a and &a + 1 (which is handled explicitly in
> > c-format.c).
>
> It is possible to construct tests with &a[0] or &a[1] - they just wouldn't
> exercise the new code paths. Because &a[0] and &a[1] being handled is a
> feature which is untested, my point is that it would also be useful to add
> such tests to make sure that the subsequent changes in this area don't
> break that feature.
Ah ok, yes. I'll see what I can do.
Richard.
--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/