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: Work-around for bug in ancient SPARC Sun C compiler


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


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