This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA:] bfd/elf-strtab.c: make i unsigned long to work aroundbug in egcs-1.1.2
- To: Alan Modra <amodra at bigpond dot net dot au>
- Subject: Re: [RFA:] bfd/elf-strtab.c: make i unsigned long to work aroundbug in egcs-1.1.2
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Sun, 11 Nov 2001 06:10:34 -0500 (EST)
- Cc: <binutils at sources dot redhat dot com>
On Sun, 11 Nov 2001, Alan Modra wrote:
> On Sun, Nov 11, 2001 at 05:34:46AM -0500, Hans-Peter Nilsson wrote:
> >
> > * elf-strtab.c (_bfd_elf_strtab_finalize): Make variable i
> > unsigned long.
>
> Make it an unsigned int, the same as tab->size.
No, tab->size is not the same as unsigned int. It's
struct elf_strtab_hash
{
struct bfd_hash_table table;
/* Next available index. */
bfd_size_type size;
...
Still?
> Get rid of the
> extra "unsigned int i" in the loop too.
Will do, unless you reconsidered. It shouldn't be called "i"
anyways, if it stays.
brgds, H-P