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: "Dave Korn" <dk at artimi dot com>
- To: "'Richard Henderson'" <rth at redhat dot com>,"'Richard Kenner'" <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 7 Jul 2004 17:45:36 +0100
- Subject: 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....