aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-11 07:40:22 +0000
committerAlan Modra <amodra@gmail.com>2008-08-11 07:40:22 +0000
commit818236e51ddfafe9688b99e1ce5ddc3d2dc4a0a9 (patch)
tree818e7a68ac2eeefaa4d0deee8982a4fd0cb74493 /gas/config
parent74235fd7819cda08ee923ccd9759c55b74b0a59b (diff)
downloadgdb-818236e51ddfafe9688b99e1ce5ddc3d2dc4a0a9.zip
gdb-818236e51ddfafe9688b99e1ce5ddc3d2dc4a0a9.tar.gz
gdb-818236e51ddfafe9688b99e1ce5ddc3d2dc4a0a9.tar.bz2
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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-tic54x.c4
1 files changed, 2 insertions, 2 deletions
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. */