* rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 18 Sep 2009 15:48:23 +0000 (15:48 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 18 Sep 2009 15:48:23 +0000 (15:48 +0000)
union member.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 126eec1a4bcb1547a17c0bb3db7d3bd5f46b9c48..18347f7095af10f96164a1bad35ab49f816c5363 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double
+       union member.
+
 2009-09-17  Joel Brobecker  <brobecker@adacore.com>
 
        Fix a build failure on pa-hpux:
index cd9611582445a51f5046757060de61c8a847abb8..fae5c284b6f6c9cc49ccde272ee4cb722ba42022 100644 (file)
@@ -2311,6 +2311,7 @@ rs6000_builtin_type_vec128 (struct gdbarch *gdbarch)
 
         type = union __ppc_builtin_type_vec128 {
             uint128_t uint128;
+            double v2_double[2];
             float v4_float[4];
             int32_t v4_int32[4];
             int16_t v8_int16[8];
@@ -2323,6 +2324,8 @@ rs6000_builtin_type_vec128 (struct gdbarch *gdbarch)
       t = arch_composite_type (gdbarch,
                               "__ppc_builtin_type_vec128", TYPE_CODE_UNION);
       append_composite_type_field (t, "uint128", bt->builtin_uint128);
+      append_composite_type_field (t, "v2_double",
+                                  init_vector_type (bt->builtin_double, 2));
       append_composite_type_field (t, "v4_float",
                                   init_vector_type (bt->builtin_float, 4));
       append_composite_type_field (t, "v4_int32",