Xref: utzoo comp.lang.fortran:5337 comp.unix.aix:5002 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!uvaarpa!murdoch!astsun.astro.Virginia.EDU!gl8f From: gl8f@astsun.astro.Virginia.EDU (Greg Lindahl) Newsgroups: comp.lang.fortran,comp.unix.aix Subject: Re: HELP! Need Decent RS6000 Fortran Compiler! Message-ID: <1991May9.015512.27264@murdoch.acc.Virginia.EDU> Date: 9 May 91 01:55:12 GMT References: <1991May3.211427.19026@pensoft.uucp> <1991May04.200345.26241@turnkey.tcc.com> Sender: usenet@murdoch.acc.Virginia.EDU Organization: Department of Astronomy, University of Virginia Lines: 19 In article jkorpela@vipunen.hut.fi (Jukka Korpela) writes: >I'm struggling, among other things, with the problem of detecting the >occurrence of floating-point errors. (I've abandoned the hope of ever really >trapping them...) I'd like to find the answer to this also. I asked on comp.unix.aix and got no replies. The corresponding situation for SunOS looks like this: integer n, ieee_handler, sigfpe_abort n = ieee_handler( 'set', 'common', SIGFPE_ABORT ) On the RS/6000, it seems that FORTRAN doesn't have anything special, but that the fp_enable stuff could be used to get the processor to signal on things like divide by zero instead of merrily going on. Amazing that the Fortran manual has no mention of this nor an example. Hmph. Anyone?