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]
Other format: [Raw text]

Re: PATCH: Work around a long long bug in gcc 2.96


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


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