🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51205

gcc-2.4.3.1/sparc 10/Solaris 2.2 Floating point problems

#51205
From: John Carter
Date: Tue, 15 Jun 1993 19:39
48 lines
1957 bytes
I am trying to get 2.4.3.1 to work on a Sparc 10 model 20 running Solaris 2.2.
I do not have the Sun compiler at all. Here are the particulars:

     Sparc 10 Model 20
     64M memory
     Solaris 2.2

Pulled cygnus compiler off PTF cdrom (version cygnus-2.2.4).  I seemed to work
OK for simple programs, so I used it to compile gcc-2.4.3.1 (with configure
--target=sparc-sun-solaris2 and BOOTSTRAPCFLAGS=-DSVR4).  

During make compare I did see several differences.  I figured maybe it was a 
time-stamp problem and went ahead and installed. (the eternal optimist :-))

I started compiling X11R5 and made it all the way to the fonts.  During the
execution of bdftopcf it blew up saying that SIZE must be > zero.  Upon
further investigation, it seems that the compiler is not handling floats
properly.  I have included a short test program below.  I also went back and
tried the cygnus compiler and got the same results.

------------ begin included source ----------------
#include <stdio.h>
main()
{
	float fp = 1.2345;
	printf("float = %f\n", fp);
}
------------ end included source ----------------


I get the following output:

float = 0.000000




Has anybody seen this one?  There must be a compile flag that I've missed.
Any help will be greatly appreciated.

John




-- 
John Carter                  carterj@abraxas.com
Orlando, Florida
Technical Details
Message-ID: <1993Jun15.193950.25211@abraxas.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!udel!news.intercon.com!psinntp!hd0427!carterj

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b46c577a2ef38fb2,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-15 13:56:49 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!udel!news.intercon.com!psinntp!hd0427!carterj
From: carterj@abraxas.com (John Carter)
Subject: gcc-2.4.3.1/sparc 10/Solaris 2.2  Floating point problems
Message-ID: <1993Jun15.193950.25211@abraxas.com>
Organization: SystemHouse Inc.
Date: Tue, 15 Jun 1993 19:39:50 GMT
Lines: 48