summaryrefslogtreecommitdiff
path: root/gas/hash.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-12 08:42:41 +0000
committerNick Clifton <nickc@redhat.com>2005-04-12 08:42:41 +0000
commit4c058cfbb7853618f2f17fb333f09799ab9d85c7 (patch)
tree462b5a11291c32d831e41348032511b956b03cf0 /gas/hash.h
parente9cac07e6bcd102adf3ea933b8e12a062a3e9b19 (diff)
downloadbinutils-redhat-4c058cfbb7853618f2f17fb333f09799ab9d85c7.tar.gz
* hash.c (DEFAULT_SIZE): Delete. Replace with:
(gas_hash_table_size): New static variable. (set_gas_hash_table_size): New function: Records a requested size for the hash tables. (get_gas_hash_table_size): New function: Return a prime number near the requested size of the hash table. (hash_new): Use get_gas_hash_table_size. * hash.h: Add a prototype for set_gas_hash_table_size. * as.c (show_usage): Add description of new switches: --hash-size and --reduce-memory-overheads. (option_values): Add OPTION_HASH_TABLE_SIZE and OPTION_REDUCE_MEMORY_OVERHEADS. (std_longpopts): Add entries for the new options. (parse_args): Handle the new options. * Makefile.am: Add a dependency of as.c on hash.h. * Makefile.in: Regenerate. * doc/as.texinfo: Document the new switches. * NEWS: Mention the new switches.
Diffstat (limited to 'gas/hash.h')
-rw-r--r--gas/hash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/hash.h b/gas/hash.h
index 48dad15013..c759a26dca 100644
--- a/gas/hash.h
+++ b/gas/hash.h
@@ -24,6 +24,10 @@
struct hash_control;
+/* Set the size of the hash table used. */
+
+void set_gas_hash_table_size (unsigned int);
+
/* Create a hash table. This return a control block. */
extern struct hash_control *hash_new (void);