Work-around for bug in ancient SPARC Sun C compiler

Alexandre Oliva aoliva@redhat.com
Mon Feb 11 08:28:00 GMT 2002


On Feb 11, 2002, Alan Modra <amodra@bigpond.net.au> wrote:

> 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.

Thanks, here's what I'm checking in:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sunc-bug.patch
Type: text/x-patch
Size: 4118 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20020211/605e482d/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Binutils mailing list