rs6000.c (build_opaque_vector_type): Set TYPE_CANONICAL for copied element type.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 10 Jun 2008 17:12:43 +0000 (18:12 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 10 Jun 2008 17:12:43 +0000 (18:12 +0100)
* config/rs6000/rs6000.c (build_opaque_vector_type): Set
TYPE_CANONICAL for copied element type.

From-SVN: r136632

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index bd7d2048dc020227952951ad3d03c8c3decdfbca..6a2080da1c4d8ec7aa66e4203b69d76843684b50 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/rs6000/rs6000.c (build_opaque_vector_type): Set
+       TYPE_CANONICAL for copied element type.
+
 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/36473
index 91e1732a8f424115a8a90717681fe03f9184fa82..dcbccbca38ea875d5134a65173de2f30a8730dc2 100644 (file)
@@ -9119,6 +9119,7 @@ build_opaque_vector_type (tree node, int nunits)
 {
   node = copy_node (node);
   TYPE_MAIN_VARIANT (node) = node;
+  TYPE_CANONICAL (node) = node;
   return build_vector_type (node, nunits);
 }