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: Ada and TBAA and arrays vs. VIEW_CONVERT_EXPRs


Eric Botcazou wrote:
I'm not sure what "consistent" means, but it seems to me that if you want
to access an array as a whole, you want the alias set of the array itself.
Why would the alias set of the component be used?

The alias set of the array type is equal to that of its component, i.e. the first call to get_alias_set on an array without TYPE_NONALIASED_COMPONENT sets the alias set of the component on this array.

Makes sense to me!



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