aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-11-13 19:07:00 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-11-13 19:07:00 +0000
commit8b982acfc63906d5207737a6e2072ed70884fe0e (patch)
tree05e7b5c84eb7707a117558f2cb514a697c5504ac /gdb/gdbtypes.c
parent760f63305aa52e9c18f9d976b74690d25ba587e4 (diff)
downloadfsf-binutils-gdb-8b982acfc63906d5207737a6e2072ed70884fe0e.zip
fsf-binutils-gdb-8b982acfc63906d5207737a6e2072ed70884fe0e.tar.gz
fsf-binutils-gdb-8b982acfc63906d5207737a6e2072ed70884fe0e.tar.bz2
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.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 2557d69..bf05cf0 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -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);