gas will miscompile with SPARCompiler 3.0.1 on Solaris7

Michael Meissner meissner@cygnus.com
Fri Apr 7 11:16:00 GMT 2000


On Fri, Apr 07, 2000 at 09:03:03AM -0700, Ian Lance Taylor wrote:
> What if we simply write 0xffffffffU?

That doesn't work on pre-ansi compilers.  Ie, on StunOS:

-rtl-> echo "unsigned a = 0xffffffffU;" > foo.c
-rtl-> cc -c foo.c
"foo.c", line 1: syntax error at or near variable name "U"

> Using N_ONES would be OK with me too, although it is rather awkward.
> 
> In general I agree that we should not try to fix every case where this
> can be a problem.  Again, it is only a bug in a proprietary compiler.
> We should only fix whatever is needed to make this target work on
> Solaris.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482


More information about the Binutils mailing list