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


> Wouldn't this be as simple as assigning the type of
> DECL_NONADDRESSABLE_P fields to a different alias set than the alias
> set of the type.  Subset this alias set with that of its parent.  This
> alias set would still conflict with anybody potentially referencing
> the parent (which would fix the bitfield issue) but would not conflict
> with the alias set of the type of the field (which is what the Ada
> folks are after)?

Yes, I also agree that this should work.  Now replace "a different alias set 
than the alias set of the type" by "the alias set of its parent" in the above 
paragraph; everything remains valid.  So why do we need another alias set?

-- 
Eric Botcazou


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