OSDN Git Service

* hash.c (DEFAULT_SIZE): Delete. Replace with:
authornickc <nickc>
Tue, 12 Apr 2005 08:42:37 +0000 (08:42 +0000)
committernickc <nickc>
Tue, 12 Apr 2005 08:42:37 +0000 (08:42 +0000)
commit11243dd14d48e332c98d7c7c92804855ff73b13f
treed7a1d1151c5a4526fc99c760c1a80b54ab6a69ea
parent4be72a6840486981890eaba6e3b752876fd87385
* 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.
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/NEWS
gas/as.c
gas/doc/as.texinfo
gas/hash.c
gas/hash.h