From d40f3da9047364a8af792452aafac81fb5de5e74 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 14 Feb 2008 08:31:47 +0000 Subject: [PATCH] * elflink.c (compute_bucket_count): Warning fixes. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8d88bd503c..d5371463112 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2008-02-14 Alan Modra + + * elflink.c (compute_bucket_count): Warning fixes. + 2008-02-12 DJ Delorie * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of diff --git a/bfd/elflink.c b/bfd/elflink.c index c658b140d7b..a0bd0df41a6 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -5234,13 +5234,13 @@ static const size_t elf_buckets[] = Therefore the result is always a good payoff between few collisions (= short chain lengths) and table size. */ static size_t -compute_bucket_count (struct bfd_link_info *info, unsigned long int *hashcodes, - unsigned long int nsyms, int gnu_hash) +compute_bucket_count (struct bfd_link_info *info, + unsigned long int *hashcodes ATTRIBUTE_UNUSED, + unsigned long int nsyms, + int gnu_hash) { - size_t dynsymcount = elf_hash_table (info)->dynsymcount; size_t best_size = 0; unsigned long int i; - bfd_size_type amt; /* We have a problem here. The following code to optimize the table size requires an integer type with more the 32 bits. If @@ -5252,8 +5252,10 @@ compute_bucket_count (struct bfd_link_info *info, unsigned long int *hashcodes, size_t maxsize; BFD_HOST_U_64_BIT best_chlen = ~((BFD_HOST_U_64_BIT) 0); bfd *dynobj = elf_hash_table (info)->dynobj; + size_t dynsymcount = elf_hash_table (info)->dynsymcount; const struct elf_backend_data *bed = get_elf_backend_data (dynobj); unsigned long int *counts; + bfd_size_type amt; /* Possible optimization parameters: if we have NSYMS symbols we say that the hashing table must at least have NSYMS/4 and at most -- 2.30.2