From 77c5f49648cc39d9e4b1bd0411998ec42375654b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 13 Mar 2023 11:30:08 -0600 Subject: 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 --- gdb/rs6000-tdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/rs6000-tdep.c') diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 9859a7d..52dcc89 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -2432,8 +2432,9 @@ rs6000_builtin_type_vec128 (struct gdbarch *gdbarch) */ /* PPC specific type for IEEE 128-bit float field */ + type_allocator alloc (gdbarch); struct type *t_float128 - = arch_float_type (gdbarch, 128, "float128_t", floatformats_ieee_quad); + = init_float_type (alloc, 128, "float128_t", floatformats_ieee_quad); struct type *t; -- cgit v1.1