X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Fhash.c;h=c484588606611ebf27d26e17ae0605f8d4cc190e;hb=456e800a63def18484f69a51f59c2338a5cc4568;hp=9a577848065b0527fb3c8210dea5e431f54d78b8;hpb=4b95cf5c0c75d6efc1b2f96af72317aecca079f1;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/hash.c b/gas/hash.c index 9a57784806..c484588606 100644 --- a/gas/hash.c +++ b/gas/hash.c @@ -1,5 +1,5 @@ /* hash.c -- gas hash table code - Copyright (C) 1987-2014 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);