2001-11-13 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 13 Nov 2001 19:07:00 +0000 (19:07 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 13 Nov 2001 19:07:00 +0000 (19:07 +0000)
From Andrew Cagney <cagney@redhat.com>:
* gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
* gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
new builtin types.

gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h

index fdac70066bc8e496f8ad859fdd7dfcb681b20b3f..00bdcb74be48bc5c159cd6d90e85dc4b29f1d0b7 100644 (file)
@@ -1,3 +1,10 @@
+2001-11-13  Elena Zannoni  <ezannoni@redhat.com>
+
+       From Andrew Cagney <cagney@redhat.com>:
+       * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
+       * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
+       new builtin types.  
+
 2001-11-13  Jim Blandy  <jimb@redhat.com>
 
        * s390-tdep.c: Rewrite inferior function call code.  This may
index 2557d69edb394034dc2da76bb9c7c63c77811b70..bf05cf0080c3d0edb91df6122ca2ce68ea7ba50b 100644 (file)
@@ -67,6 +67,8 @@ struct type *builtin_type_int32;
 struct type *builtin_type_uint32;
 struct type *builtin_type_int64;
 struct type *builtin_type_uint64;
+struct type *builtin_type_int128;
+struct type *builtin_type_uint128;
 struct type *builtin_type_bool;
 struct type *builtin_type_v4sf;
 struct type *builtin_type_v4si;
@@ -2931,6 +2933,14 @@ build_gdbtypes (void)
     init_type (TYPE_CODE_INT, 64 / 8,
               TYPE_FLAG_UNSIGNED,
               "uint64_t", (struct objfile *) NULL);
+  builtin_type_int128 =
+    init_type (TYPE_CODE_INT, 128 / 8,
+              0,
+              "int128_t", (struct objfile *) NULL);
+  builtin_type_uint128 =
+    init_type (TYPE_CODE_INT, 128 / 8,
+              TYPE_FLAG_UNSIGNED,
+              "uint128_t", (struct objfile *) NULL);
   builtin_type_bool =
     init_type (TYPE_CODE_BOOL, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
               0,
@@ -2944,7 +2954,6 @@ build_gdbtypes (void)
      &showlist);
   opaque_type_resolution = 1;
 
-
   /* Build SIMD types.  */
   builtin_type_v4sf
     = init_simd_type ("__builtin_v4sf", builtin_type_float, "f", 4);
@@ -3035,6 +3044,8 @@ _initialize_gdbtypes (void)
   register_gdbarch_swap (&builtin_type_uint32, sizeof (struct type *), NULL);
   register_gdbarch_swap (&builtin_type_int64, sizeof (struct type *), NULL);
   register_gdbarch_swap (&builtin_type_uint64, sizeof (struct type *), NULL);
+  register_gdbarch_swap (&builtin_type_int128, sizeof (struct type *), NULL);
+  register_gdbarch_swap (&builtin_type_uint128, sizeof (struct type *), NULL);
   register_gdbarch_swap (&builtin_type_v4sf, sizeof (struct type *), NULL);
   register_gdbarch_swap (&builtin_type_v4si, sizeof (struct type *), NULL);
   register_gdbarch_swap (&builtin_type_v8qi, sizeof (struct type *), NULL);
index 8a45715460a85154352157800b17102c76329b45..686983c01000c262e15b06a1981becefb7bf5b8e 100644 (file)
@@ -897,6 +897,8 @@ extern struct type *builtin_type_int32;
 extern struct type *builtin_type_uint32;
 extern struct type *builtin_type_int64;
 extern struct type *builtin_type_uint64;
+extern struct type *builtin_type_int128;
+extern struct type *builtin_type_uint128;
 
 /* SIMD types.  We inherit these names from GCC.  */
 extern struct type *builtin_type_v4sf;