This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA:] bfd/elf-strtab.c: make i unsigned long to work aroundbug in egcs-1.1.2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]