This is the mail archive of the gcc@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: your change to tree-sra.c


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.


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