From 818236e51ddfafe9688b99e1ce5ddc3d2dc4a0a9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 11 Aug 2008 07:40:22 +0000 Subject: PR 6575 * hash.c: Expand PTR to void *. (hash_delete): Add "freeme" parameter. Call obstack_free. * hash.h: Expand PTR to void *. (hash_delete): Update prototype. * macro.c (macro_expand_body): hash_delete LOCALs from formal_hash. * config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete call. (subsym_substitute): Likewise. * doc/internals.texi (hash_delete): Update. --- gas/config/tc-tic54x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index f7cf042..823015a 100644 --- a/gas/config/tc-tic54x.c +++ b/gas/config/tc-tic54x.c @@ -1266,7 +1266,7 @@ tic54x_remove_local_label (key, value) const char *key; PTR value ATTRIBUTE_UNUSED; { - PTR *elem = hash_delete (local_label_hash[macro_level], key); + PTR *elem = hash_delete (local_label_hash[macro_level], key, FALSE); free (elem); } @@ -4960,7 +4960,7 @@ subsym_substitute (line, forced) { hash_insert (subsym_recurse_hash, name, name); value = subsym_substitute (value, macro_level > 0); - hash_delete (subsym_recurse_hash, name); + hash_delete (subsym_recurse_hash, name, FALSE); } /* Temporarily zero-terminate where the symbol started. */ -- cgit v1.1