summaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2011-04-20 12:52:12 +0000
committerAlan Modra <amodra@bigpond.net.au>2011-04-20 12:52:12 +0000
commit253183d0c8624e354cda5f6e1012df40ba35d16b (patch)
tree9582b0fa2c3b3fca0484c0c961d14b9fb53ce53d /bfd/bfd-in2.h
parent6254bc84189680b3b78fdb71faa56b2e9e5ee6ac (diff)
downloadgdb-253183d0c8624e354cda5f6e1012df40ba35d16b.tar.gz
bfd/
* hash.c (bfd_default_hash_table_size): Make it an unsigned long. (bfd_hash_table_init_n): Overflow checking. (bfd_hash_set_default_size): Return current size. Take unsigned long arg. Add 65537 to hash_size primes. * bfd-in.h (bfd_hash_set_default_size): Update prototype. * bfd-in2.h: Regenerate. gas/ * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size. (hash_new_sized): New function, split out from.. (hash_new): ..here. ld/ * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 2c795b6cbbd..76836b15c82 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -439,7 +439,7 @@ extern void bfd_hash_traverse
/* Allows the default size of a hash table to be configured. New hash
tables allocated using bfd_hash_table_init will be created with
this size. */
-extern void bfd_hash_set_default_size (bfd_size_type);
+extern unsigned long bfd_hash_set_default_size (unsigned long);
/* This structure is used to keep track of stabs in sections
information while linking. */