🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2642

gcc 1.35 fixunsdfsi doesn't work on Sun 3 (68020)

#2642
From: Roland McGrath
Date: Sun, 14 May 1989 11:49
22 lines
937 bytes
There is a bug in the Sun 3 C compiler such that under -O,
the `__fixunsdfsi' function in gnulib gets done wrong.
Without -O, it compiles to:

	link a6, #0
	movel a6@(8), d0
	movel a6@(12), d1
	jsr Fund
	unlk a6
	rts

With -O, it becomes:

	link a6, #0
	jsr Fund
	unlk a6
	rts

which doesn't work.

The bottom line is that unless you compile gnulib without -O, casting a
double to an unsigned int won't work (it will always come out zero).
Technical Details
Message-ID: <8905141149.AA05564@tully.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%tully.Berkeley.EDU

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%tully.Berkeley.EDU
From: mcgrath%tully.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath)
Newsgroups: gnu.gcc.bug
Subject: gcc 1.35 fixunsdfsi doesn't work on Sun 3 (68020)
Message-ID: <8905141149.AA05564@tully.Berkeley.EDU>
Date: 14 May 89 11:49:54 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 22