This is the mail archive of the gcc-patches@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: alias.c:nonoverlapping_component_refs_p


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.


r~


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