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: Incorrect bitfield aliasing with Tree SSA


Richard Kenner writes:
> > +  /* Alias set for a DECL_NONADDRESSABLE_P field.  Otherwise -1.  */
> > +  HOST_WIDE_INT alias_set;
> 
> Do you need this extra memory?  Can't you just have a flag that says
> to look at TYPE_ALIAS_SET (DECL_CONTEXT (field))?

Maybe I am over-complicating but wouldn't that give you the incorrect
answer with a.b.c.  Isn't DECL_CONTEXT (field) the type of b here
which might or might not be addressable?

I could use an Ada testcase to work out these recursive cases.  I will
try to write one but I am sure it would be quicker for you :).

Adam


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