This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]