This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch] PATCH to pretty-printer
- From: Diego Novillo <dnovillo at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 12 Jun 2002 17:26:58 -0400
- Subject: Re: [ast-optimizer-branch] PATCH to pretty-printer
- References: <20020612150502.E17441@redhat.com>
On Wed, 2002-06-12 at 15:05, Frank Ch. Eigler wrote:
> char *p;
> int *q;
> p[8] = 'a';
> p[7] = 5;
>
> where the 8/7 indices were not both correctly printed because the
> size of the pointed-to type was accounted for improperly.
>
These indices currently show up as '0', right? It's been bugging me for
a while. Not enough, obviously.
> 2002-06-12 Frank Ch. Eigler <fche@redhat.com>
>
> * c-pretty-print.c (dump_c_node): Correct scaling of pointer-type
> integer constants by type precision.
>
This is OK.
Thanks. Diego.