🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52372

gcc 2.2.2 asm() help needed

#52372
From: Kevin Russo
Date: Wed, 21 Oct 1992 12:05
21 lines
1123 bytes
I am trying to compile the BSD 4.4 net2 release library using 
GCC 2.2.2 and when the build gets to the module ldexp() the
compiler fails saying that a fatal signal 6 (abort();) was
raised in cc1. The code looks like this:
	double
	ldexp (double value, int exp)
	{
		double temp, texp, temp2;
		texp = (double) exp;
		asm ("fscale ; fxch %%st(1) ; fstp%L1 %1 "
			: "=f" (temp), "=0" (temp2)
			: "0" (texp), "f" (value));
		return (temp);
	}
If I comment out the asm() statement the code gets through
the compiler.  Can someone help out?  No one here can figure
this one out.

Much thanks, in advance!

--Kevin Russo
Technical Details
Message-ID: <BwH092.IsD@csi.compuserve.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ihz.compuserve.com!krusso

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,102ee78808790a52,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-10-21 00:13:02 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!ihz.compuserve.com!krusso
From: krusso@csi.compuserve.com (Kevin Russo)
Subject: gcc 2.2.2 asm() help needed
Message-ID: <BwH092.IsD@csi.compuserve.com>
Organization: CompuServe Incorporated
Distribution: usa
Date: Wed, 21 Oct 1992 12:05:26 GMT
Lines: 21