This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: your change to tree-sra.c
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 07 Jul 2004 12:25:34 -0400
- Subject: Re: your change to tree-sra.c
- Organization: Red Hat Canada
- References: <10407071431.AA05430@vlsi1.ultra.nyu.edu> <20040707162048.GA7331@redhat.com>
On Wed, 2004-07-07 at 12:20, Richard Henderson wrote:
> On Wed, Jul 07, 2004 at 10:31:18AM -0400, Richard Kenner wrote:
> > But I think it best not to rely on a zero DECL_INITIAL meaning anything.
>
> DECL_INITIAL being NULL has *always* meant that the variable goes
> in BSS, and thus is zero initialized. We're talking about loading
> from static, read-only memory. There must be *SOME* value there,
> and by definition it cannot change.
>
> You've not yet explained to me what is wrong with assuming zero
> from null DECL_INITIAL. How about you start there?
>
IIUC, Ada allows non-constant initializers for static read-only
variables. I don't know where/how the Ada gimplifier emits the
initialization code.
Diego.