PATCH: Work around a long long bug in gcc 2.96

H . J . Lu hjl@lucon.org
Sat Jun 8 20:09:00 GMT 2002


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.



More information about the Binutils mailing list