This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C/Ada] Streamline range type building and hashing
> Now, I don't know if in the case of TYPE_MULTI_ARRAY_P this would be
> the best approach (the documentation of it suggests that that flag
> might be equivalent to TREE_CODE (TREE_TYPE (array-type)) == ARRAY_TYPE,
> but I might be missing another subtlety of the Ada language here ;)).
I think we need a way to distinguish multi-dim array types from array of array
types, like in the language.
> Another flag that is eventually set is TYPE_NONALIASED_COMPONENT which would
> need similar treatment.
At least this one is generic.
> Sure. Another approach would be to introduce a build_nonshared_array_type
> function and make that and build_array_type wrap a common worker with
> a flag.
Indeed, even better, I'll give it a try, thanks.
--
Eric Botcazou