Article View: gnu.gcc.help
Article #51625Is there a way to initialize stack variables to NaN?
From: Thomas Koenig
Date: Mon, 26 Apr 1993 11:05
Date: Mon, 26 Apr 1993 11:05
20 lines
1525 bytes
1525 bytes
Hello, gcc - world; is there a way to initialize variables allocated on the stack to signalling NaN's on those architectures which support them? The reason I'm asking is that I have some FORTRAN code which I want to use on my Linux box using f2c. The code does depend on keeping values between subroutine calls (which is non - standard, but common in old programs), and I'd rather find this out by having the program die on me once for each variable than by getting subtly wrong results all the time. If there is no way, I' selfishly suggest adding this to gcc as a debugging help (maybe to the malloc - call as well). Happy hacking -- Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet The joy of engineering is to find a straight line on a double logarithmic diagram.
Technical Details
Message-ID:
<1rggar$hbu@nz12.rz.uni-karlsruhe.de>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!ira.uka.de!rz.uni-karlsruhe.de!fg30.rz.uni-karlsruhe.de!ig25Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,6002b9e23f04d8f3,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-26 04:17:34 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!ira.uka.de!rz.uni-karlsruhe.de!fg30.rz.uni-karlsruhe.de!ig25 From: ig25@fg30.rz.uni-karlsruhe.de (Thomas Koenig) Newsgroups: gnu.gcc.help Subject: Is there a way to initialize stack variables to NaN? Date: 26 Apr 93 11:05:55 GMT Organization: University of Karlsruhe, Germany Lines: 20 Message-ID: <1rggar$hbu@nz12.rz.uni-karlsruhe.de> NNTP-Posting-Host: fg30.rz.uni-karlsruhe.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit