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: New problem compiling g-exctra.adb


On Tue, Sep 07, 2004 at 09:52:00PM -0400, Diego Novillo wrote:
> On the contrary.  If the value 0 tells you that no variable is aliased
> to that pointer, that is invaluable.

Having DECL_INITIAL equal zero is exactly like having DECL_INITIAL
not set at all.  In both cases the value of the pointer variable at
program startup equals zero.

So if in fact you can derive additional info from the zero, then
you should be doing the same thing for variables without an
initialization too. [1]

That said, DannyB's argument for ignoring the initialization seems
convincing to me.  But I'm not totally familiar with what you've
got going in the alias stuff.



r~


[1] Modulo DECL_COMMON and DECL_WEAK, which I now realize should be
PT_ANYTHING all the time, since the actual location of the variable
(and contents) are determined at link time, not at compile time.


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