This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Work-around for bug in ancient SPARC Sun C compiler
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 11 Feb 2002 21:23:42 +1030
- Subject: Re: Work-around for bug in ancient SPARC Sun C compiler
- References: <orn0ygldkt.fsf@livre.redhat.lsd.ic.unicamp.br>
On Mon, Feb 11, 2002 at 04:47:30AM -0200, Alexandre Oliva wrote:
> +/* Some ancient Sun C compilers would not take such hex constants as
> + unsigned, and would end up sign-extending them to form an offsetT,
> + so use these constants instead. */
> +#define U0xffffffffl ((((unsigned long)1 << 16) << 16) - 1)
> +#define U0x80000000l ((((unsigned long)1 << 16) << 15))
I think the defines would look better without the trailing 'l', and
you need a space after the cast to meet GNU coding guidelines.
Otherwise OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre