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
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 9 Jun 2002 08:14:30 +0930
- Subject: Re: PATCH: Work around a long long bug in gcc 2.96
- References: <20020608000939.A1342@lucon.org> <20020608095324.A10116@lucon.org>
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 *);
--
Alan Modra
IBM OzLabs - Linux Technology Centre