This is the mail archive of the
mailing list for the GCC project.
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Dec 2001 09:28:36 -0800
- Subject: Re: alias.c:nonoverlapping_component_refs_p
- References: <10112040320.AA13246@vlsi1.ultra.nyu.edu>
On Mon, Dec 03, 2001 at 10:20:41PM -0500, Richard Kenner wrote:
> I see. I don't think you need a MEM_DECL for that, though: couldn't
> you just copy the MEM_EXPR value and insert the decl?
Not directly. If we have an offset for the field, and a decl at
the root, we'll compute the offset for the decl. We'd need some
way to say that the field is at an unknown offset from the decl.
> However, I wondering: perhaps it shouldn't be either MEM_DECL or MEM_EXPR
> but instead a MEM_DECLLIST which is a TREE_VEC listing the decls (either
> VAR_DECL or FIELD_DECL) that are passed through.
That wouldn't preserve offset information in the case that we do
have it all available.