aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-14 09:00:35 +0000
committerNick Clifton <nickc@redhat.com>2005-04-14 09:00:35 +0000
commitf7a568eabfa46133c0bebd7af81704cd916e4152 (patch)
treea85da23139949df18b2028bc7875769801d6c94f /gas/as.c
parent9e9b66a9565074bc875a2b2d01c628c58bca6bd5 (diff)
downloadgdb-f7a568eabfa46133c0bebd7af81704cd916e4152.zip
gdb-f7a568eabfa46133c0bebd7af81704cd916e4152.tar.gz
gdb-f7a568eabfa46133c0bebd7af81704cd916e4152.tar.bz2
* as.c (main): Move parse_args before symbol_begin and frag_init so that the
hash table size can be set before it is used. * hash.c: Use an unsigned long type for the size of the hash tables. * hash.h (set_gas_hash_table_size): Update the prototype.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/as.c b/gas/as.c
index da05a71..507124f 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -885,7 +885,7 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
case OPTION_HASH_TABLE_SIZE:
{
- bfd_size_type new_size;
+ unsigned long new_size;
new_size = strtoul (optarg, NULL, 0);
if (new_size)
@@ -1114,10 +1114,12 @@ main (int argc, char ** argv)
#endif
PROGRESS (1);
+ /* Call parse_args before any of the init/begin functions
+ so that switches like --hash-size can be honored. */
+ parse_args (&argc, &argv);
symbol_begin ();
frag_init ();
subsegs_begin ();
- parse_args (&argc, &argv);
read_begin ();
input_scrub_begin ();
expr_begin ();