🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1866

non-obvious warning (follow-up)

#1866
From: gary
Date: Fri, 21 Oct 1988 19:42
36 lines
1635 bytes
Forgot some of the requested information:
This is run on a Sun 3/50, under Sun Unix 4.0.
I didn't install the compiler, so I don't know any other specifics.
If it is important, I can track it down.
-----
Why does the following program get warnings about floating point
number exceeding range of `double'.  0.0 seems to cause trouble.
------
Program:
------                        line numbers
                                 1
				 2
double F(x) int x;{		 3
    double r;			 4
    r = 5;			 5
				 6
    if( r ==  0.0 )		 7
	return 0.0;		 8
    else			 9
	return 1.0;		 10
}
----
Compiled with: gcc -v -Wall -c test.c >& $T
----
Error output:
----
 /usr/local/Gnu/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -Wall -D__HAVE_FPU__ -Dmc68020 test.c /tmp/cca01528.cpp
GNU CPP version 1.26
 /usr/local/Gnu/lib/gcc-cc1 /tmp/cca01528.cpp -quiet -dumpbase test.c -Wall -version -o /tmp/cca01528.s
In function F:
test.c:7: warning: floating point number exceeds range of `double'
test.c:8: warning: floating point number exceeds range of `double'
GNU C version 1.26 (68k, MIT syntax) compiled by GNU C version 1.26.
 as -mc68020 /tmp/cca01528.s -o test.o
gcc version 1.26
----
Technical Details
Message-ID: <8810211942.AA01535@milo.mcs.clarkson.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!pollux!ti-csl!cs.utexas.edu!tut.cis.ohio-state.edu!SUN.MCS.CLARKSON.EDU!gary

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!pollux!ti-csl!cs.utexas.edu!tut.cis.ohio-state.edu!SUN.MCS.CLARKSON.EDU!gary
From: gary@SUN.MCS.CLARKSON.EDU
Newsgroups: gnu.gcc.bug
Subject: non-obvious warning (follow-up)
Message-ID: <8810211942.AA01535@milo.mcs.clarkson.edu>
Date: 21 Oct 88 19:42:01 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35