decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
authorGeoff Keating <geoffk@cygnus.com>
Sun, 22 Oct 2000 01:38:35 +0000 (01:38 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 22 Oct 2000 01:38:35 +0000 (01:38 +0000)
* decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
* error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
(dump_type_prefix): Print vector-of-int as 'int vector'.
(dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
* tree.c (walk_tree): Handle VECTOR_TYPE.

From-SVN: r37002

gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/tree.c

index 694104bebd8663936665fb31d66d3462de549165..9cd863019d5b6f5aeed37c0800b6b29214b47f13 100644 (file)
@@ -1,5 +1,11 @@
 2000-10-21  Geoffrey Keating  <geoffk@cygnus.com>
 
+       * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
+       * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
+       (dump_type_prefix): Print vector-of-int as 'int vector'.
+       (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
+       * tree.c (walk_tree): Handle VECTOR_TYPE.
+
        * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
        
 2000-10-21  Jason Merrill  <jason@redhat.com>
index 9c61e559f130caf84dac7a5bb18a4aa6e07490d2..766b45f8ac70a3087ace9927bd3360894c42ac85 100644 (file)
@@ -4916,6 +4916,7 @@ arg_assoc_type (k, type)
     case POINTER_TYPE:
     case REFERENCE_TYPE:
     case ARRAY_TYPE:
+    case VECTOR_TYPE:
       return arg_assoc_type (k, TREE_TYPE (type));
     case UNION_TYPE:
     case ENUMERAL_TYPE:
index cb27751e34ed492b2a034d0c8af3439af0dfb6e2..e5cbe37f109206c04ba2af6a5c7de5bfb5c77f22 100644 (file)
@@ -539,6 +539,7 @@ dump_type (t, flags)
         reduces code size.  */
     case ARRAY_TYPE:
     case POINTER_TYPE:
+    case VECTOR_TYPE:
     case REFERENCE_TYPE:
     case OFFSET_TYPE:
     offset_type:
@@ -697,6 +698,15 @@ dump_type_prefix (t, flags)
 
   switch (TREE_CODE (t))
     {
+    case VECTOR_TYPE:
+      padding = dump_type_prefix (TREE_TYPE (t), flags);
+      if (padding != none)
+       output_add_space (scratch_buffer);
+      output_add_string (scratch_buffer, "vector");
+      dump_qualifiers (t, before);
+      padding = before;
+      break;
+
     case POINTER_TYPE:
     case REFERENCE_TYPE:
       {
@@ -803,6 +813,7 @@ dump_type_suffix (t, flags)
     case POINTER_TYPE:
     case REFERENCE_TYPE:
     case OFFSET_TYPE:
+    case VECTOR_TYPE:
       if (TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE)
        print_right_paren (scratch_buffer);
       dump_type_suffix (TREE_TYPE (t), flags);
index f974067135ad3e7fe9a67c2e48de4d33218039fb..d6314d8196841ceef80a5088c9f69b7d1aa86f1a 100644 (file)
@@ -1351,6 +1351,7 @@ walk_tree (tp, func, data, htab)
 
     case POINTER_TYPE:
     case REFERENCE_TYPE:
+    case VECTOR_TYPE:
       WALK_SUBTREE (TREE_TYPE (*tp));
       break;