* rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
authorTom Tromey <tromey@redhat.com>
Sun, 24 Aug 2008 18:01:15 +0000 (18:01 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 24 Aug 2008 18:01:15 +0000 (18:01 +0000)
TYPE_FLAGS.
* features/rs6000/powerpc-vsx32l.c
(initialize_tdesc_powerpc_vsx32l): Update.
* features/rs6000/powerpc-vsx32.c
(initialize_tdesc_powerpc_vsx32): Update.
* features/rs6000/powerpc-vsx64.c
(initialize_tdesc_powerpc_vsx64): Update.
* features/rs6000/powerpc-vsx64l.c
(initialize_tdesc_powerpc_vsx64l): Update.
* target-descriptions.c (maint_print_c_tdesc_cmd): Emit
TYPE_VECTOR, not TYPE_FLAGS.

gdb/ChangeLog
gdb/features/rs6000/powerpc-vsx32.c
gdb/features/rs6000/powerpc-vsx32l.c
gdb/features/rs6000/powerpc-vsx64.c
gdb/features/rs6000/powerpc-vsx64l.c
gdb/rs6000-tdep.c
gdb/target-descriptions.c

index 935d159d0c004616a0d108cd51819429a306a119..1812d91dec922f1762ffeaf7d18021a64a13ee37 100644 (file)
@@ -1,3 +1,18 @@
+2008-08-24  Tom Tromey  <tromey@redhat.com>
+
+       * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
+       TYPE_FLAGS.
+       * features/rs6000/powerpc-vsx32l.c
+       (initialize_tdesc_powerpc_vsx32l): Update.
+       * features/rs6000/powerpc-vsx32.c
+       (initialize_tdesc_powerpc_vsx32): Update.
+       * features/rs6000/powerpc-vsx64.c
+       (initialize_tdesc_powerpc_vsx64): Update.
+       * features/rs6000/powerpc-vsx64l.c
+       (initialize_tdesc_powerpc_vsx64l): Update.
+       * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
+       TYPE_VECTOR, not TYPE_FLAGS.
+
 2008-08-24  Tom Tromey  <tromey@redhat.com>
 
        * xml-tdesc.c (tdesc_end_union): Update.
index 560b48fa4fe5082aa90f051ca5597fdb1b2462fc..19e751777aec5443778bf81c630a14d41a0a0920 100644 (file)
@@ -122,7 +122,7 @@ initialize_tdesc_powerpc_vsx32 (void)
   append_composite_type_field (type, xstrdup ("v8_int16"), field_type);
   field_type = tdesc_named_type (feature, "v16i8");
   append_composite_type_field (type, xstrdup ("v16_int8"), field_type);
-  TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR;
+  TYPE_VECTOR (type) = 1;
   tdesc_record_type (feature, type);
 
   tdesc_create_reg (feature, "vr0", 71, 1, NULL, 128, "vec128");
index bedf0393129d15565ed4cd0d0d7ff9d38ec976b7..0290ee627acd31dac0037488d1e5aace5f598daf 100644 (file)
@@ -126,7 +126,7 @@ initialize_tdesc_powerpc_vsx32l (void)
   append_composite_type_field (type, xstrdup ("v8_int16"), field_type);
   field_type = tdesc_named_type (feature, "v16i8");
   append_composite_type_field (type, xstrdup ("v16_int8"), field_type);
-  TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR;
+  TYPE_VECTOR (type) = 1;
   tdesc_record_type (feature, type);
 
   tdesc_create_reg (feature, "vr0", 73, 1, NULL, 128, "vec128");
index da6b0fc33d8c32e8718f2ab637c69a83649a38f1..32b9796c44c52f557c247d2d66ae9e29b473b6d5 100644 (file)
@@ -122,7 +122,7 @@ initialize_tdesc_powerpc_vsx64 (void)
   append_composite_type_field (type, xstrdup ("v8_int16"), field_type);
   field_type = tdesc_named_type (feature, "v16i8");
   append_composite_type_field (type, xstrdup ("v16_int8"), field_type);
-  TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR;
+  TYPE_VECTOR (type) = 1;
   tdesc_record_type (feature, type);
 
   tdesc_create_reg (feature, "vr0", 71, 1, NULL, 128, "vec128");
index 689ca67535b5f3c22abd6528c93b7312baf8a9ca..01d9cea51f1cdd96d0ac0642972a61d152d2d6f4 100644 (file)
@@ -126,7 +126,7 @@ initialize_tdesc_powerpc_vsx64l (void)
   append_composite_type_field (type, xstrdup ("v8_int16"), field_type);
   field_type = tdesc_named_type (feature, "v16i8");
   append_composite_type_field (type, xstrdup ("v16_int8"), field_type);
-  TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR;
+  TYPE_VECTOR (type) = 1;
   tdesc_record_type (feature, type);
 
   tdesc_create_reg (feature, "vr0", 73, 1, NULL, 128, "vec128");
index fa00cc4543759376478d611d6a2229e1c62b48c6..966ca1d4f18a6ffd38cc61d3128a49024eb5a0ca 100644 (file)
@@ -2128,7 +2128,7 @@ rs6000_builtin_type_vec128 (struct gdbarch *gdbarch)
       append_composite_type_field (t, "v16_int8",
                                   init_vector_type (builtin_type_int8, 16));
 
-      TYPE_FLAGS (t) |= TYPE_FLAG_VECTOR;
+      TYPE_VECTOR (t) = 1;
       TYPE_NAME (t) = "ppc_builtin_type_vec128";
       tdep->ppc_builtin_type_vec128 = t;
     }
index 95bf7c9724fec11b378eb12054234b1fa5889cf6..c77acb6de86f914b4b4526533504160a3e872147 100644 (file)
@@ -1096,7 +1096,7 @@ maint_print_c_tdesc_cmd (char *args, int from_tty)
                }
              if (TYPE_VECTOR (type))
                printf_unfiltered
-                 ("  TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR;\n");
+                 ("  TYPE_VECTOR (type) = 1;\n");
              break;
            default:
              error (_("C output is not supported type \"%s\"."), TYPE_NAME (type));