Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!dalvm41b.vnet.ibm.com!freese From: freese@dalvm41b.vnet.ibm.com ("Bradley T. Freese") Newsgroups: comp.unix.aix Subject: Setting uninitialized values to NaN in a Fortran program Message-ID: <9105141955.AA13499@ucbvax.Berkeley.EDU> Date: 14 May 91 19:53:13 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 12 bowman@uiatma.atmos.uiuc.edu (Kenneth P. Bowman) writes: > I have an ugly Fortran code that I am porting to my 6000/320. I would like > to set all data values not initialized in data statements to NaN in the > hope of generating error messages if uninitialized variables are used. At > present, variables are apparently initialized to zero by the loader. I > have searched the xlf and ld commands for an option to set uninitialized > variables to NaN, but have been unable to find anything. Anyone out there > have any sugestions? No, there is no method to tell AIX to initialize your data segments to NaN.