aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 11:30:08 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:38 -0600
commit77c5f49648cc39d9e4b1bd0411998ec42375654b (patch)
tree3408ebafaa9c105fddb231e71005171f4be8df26 /gdb/m2-lang.c
parent46c04ea32f7f259432a68b002a13cdea86f9f902 (diff)
downloadgdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.zip
gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.tar.gz
gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.tar.bz2
Unify arch_float_type and init_float_type
This unifies arch_float_type and init_float_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r--gdb/m2-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 03c5753..e966fb4 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -289,7 +289,7 @@ build_m2_types (struct gdbarch *gdbarch)
builtin_m2_type->builtin_card
= init_integer_type (alloc, gdbarch_int_bit (gdbarch), 1, "CARDINAL");
builtin_m2_type->builtin_real
- = arch_float_type (gdbarch, gdbarch_float_bit (gdbarch), "REAL",
+ = init_float_type (alloc, gdbarch_float_bit (gdbarch), "REAL",
gdbarch_float_format (gdbarch));
builtin_m2_type->builtin_char
= init_character_type (alloc, TARGET_CHAR_BIT, 1, "CHAR");