gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gas / hash.c
index 09925f02120612ccef59f7a9a6fb26408cc170f1..c484588606611ebf27d26e17ae0605f8d4cc190e 100644 (file)
@@ -1,5 +1,5 @@
 /* hash.c -- gas hash table code
-   Copyright (C) 1987-2016 Free Software Foundation, Inc.
+   Copyright (C) 1987-2020 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -87,7 +87,7 @@ hash_new_sized (unsigned long size)
   unsigned long alloc;
   struct hash_control *ret;
 
-  ret = (struct hash_control *) xmalloc (sizeof *ret);
+  ret = XNEW (struct hash_control);
   obstack_begin (&ret->memory, chunksize);
   alloc = size * sizeof (struct hash_entry *);
   ret->table = (struct hash_entry **) obstack_alloc (&ret->memory, alloc);
This page took 0.030006 seconds and 4 git commands to generate.