Fix Alpha native GDB build
[deliverable/binutils-gdb.git] / gdb / target-descriptions.c
index e20bf9b4698bd75f9063adf1d28632014bec4da8..83a6f6cafc32690b75724d35332bd268df7c423f 100644 (file)
@@ -723,12 +723,7 @@ tdesc_find_type (struct gdbarch *gdbarch, const char *id)
 static void *
 tdesc_data_init (struct obstack *obstack)
 {
-  struct tdesc_arch_data *data;
-
-  data = OBSTACK_ZALLOC (obstack, struct tdesc_arch_data);
-  new (data) tdesc_arch_data ();
-
-  return data;
+  return obstack_new<tdesc_arch_data> (obstack);
 }
 
 /* Similar, but for the temporary copy used during architecture
This page took 0.024176 seconds and 4 git commands to generate.