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


> -----Original Message-----
> From: gcc-owner On Behalf Of Richard Henderson
> Sent: 07 July 2004 17:21
> To: Richard Kenner
> Cc: gcc@gcc.gnu.org
> Subject: Re: your change to tree-sra.c
> 
> 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.

  Or it can mean that the variable is an extern declaration.

  I just ran into this problem a little while ago when calling
categorize_decl_for_section on arbitrary decls without knowing if they were
extern or not.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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