This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Work around a long long bug in gcc 2.96
On Sun, Jun 09, 2002 at 08:14:30AM +0930, Alan Modra wrote:
> On Sat, Jun 08, 2002 at 09:53:25AM -0700, H . J . Lu wrote:
> > +#if __GNUC__ == 2 && __GNUC_MINOR__ == 96
> > + /* Gcc 2.96 miscompiles this code on mips. Don't do casting here
> > + to work around this long long bug. */
> > + amt = section_count * sizeof (asection *);
> > +#else
> > amt = (bfd_size_type) section_count * sizeof (asection *);
> > +#endif
>
> OK, but I think you may as well remove the #if and always use
>
> /* Gcc 2.96 miscompiles this code on mips. Don't do casting here
> to work around this long long bug. */
> amt = section_count * sizeof (asection *);
>
Done.
H.J.