This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR/16882: overload resolution of vector types
Paolo Bonzini wrote:
I'm of the opinion that this should be handled the same way we do
for regular arrays. In particular the TYPE_MAIN_VARIANT should be the
array of the TYPE_MAIN_VARIANT of the element-type.
But if we do so, we print "const const __vector__ signed short" in the
case of vector types.
No, sorry, that's precisely what the patch does:
tree innertype_main_variant = TYPE_MAIN_VARIANT (innertype);
TYPE_MAIN_VARIANT (t)
= type_hash_canon (hash, make_vector_type (innertype_main_variant,
nunits, mode));
Paolo