This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ada and TBAA and arrays vs. VIEW_CONVERT_EXPRs
> 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. See Richard's patch for
> the rationale (Fortran quirks apparently).
Sorry, I misstated something on my last email. If Fortran needs the
alias set of an array to be that of its element, it shouldn't set
TYPE_NONALIASED_COMPONENT, but should manually set the alias set of the
array. There's no reason to pessimize other languages.