This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New problem compiling g-exctra.adb
- 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: Tue, 07 Sep 2004 19:04:26 -0400
- Subject: Re: New problem compiling g-exctra.adb
- Organization: Red Hat Canada
- References: <10409072204.AA28609@vlsi1.ultra.nyu.edu> <20040907225657.GB31348@redhat.com>
On Tue, 2004-09-07 at 18:56, Richard Henderson wrote:
> On Tue, Sep 07, 2004 at 06:04:10PM -0400, Richard Kenner wrote:
> > OK, I fixed that bug in the front end. Now I get an abort in
> > add_pointed_to_var. The reason is that DECL_INITIAL of a pointer is
> > set to INTEGER_CST of zero, but add_pointed_to_var expects an ADDR_EXPR.
>
> I think add_pointed_to_var and add_pointed_to_expr should be merged.
> Thoughts, Diego?
>
Yes. And in the case of a pointer initialized to 0, we should probably
set it PT_ANYTHING, unless we can equate 0 with "can't point to a user
variable".
Diego.