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: [PATCH] Make alias_sets_conflict_p less conservative


> This makes alias_sets_conflict_p less conservative.  rev 34373 (Kenner)
> added a check that makes a structure containing a member with alias
> set zero alias everything.  Which IMHO is non-obvious and pessimizes
> for example the testcase in PR27799.  Richard, can you explain this
> change?

I'm not certain, but I think it goes like this: if a structure has
a member with alias set X (nonzero), we normally mark the alias sets
in such a way that the alias set of the structure as a whole conflicts
with alias set X.  But if X is zero, the subsetting mechanism doesn't
allow doing that.  So we have to do it explicitly, like in this code.

In other words, this is exactly analogous to the non-zero alias set
of a field case.


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