From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,83384226a7873125,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-21 12:31:29 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!gatech!howland.reston.ans.net!spool.mu.edu!uwm.edu!post.its.mcw.edu!news.doit.wisc.edu!news.doit.wisc.edu!rsmith From: rsmith@wisp5.physics.wisc.edu (Randall Smith) Newsgroups: comp.unix.osf.osf1 Subject: Floating point errors Date: 21 Jun 1994 19:17:03 GMT Organization: Space Physics, UW - Madison Distribution: world Message-ID: NNTP-Posting-Host: wisp5.physics.wisc.edu I'm trying to run a floating-point intensive program, and having a problem with the Alpha bombing out on floating-point errors, specifically overflow errors. The code runs OK if I compile it with /usr/ucb/cc -ieee_with_no_inexact but when I compile with gcc v2.5.8, I get floating overflow, core dump. What I'd like is some method of turning ON floating-point core dumps for INVALID or DIVIDEBYZERO results, but ignoring them on OVERFLOW or UNDERFLOW. I've tried the following: fp_control = IEEE_TRAP_ENABLE_INV & IEEE_TRAP_ENABLE_DZE; ieee_set_fp_control(fp_control); which doesn't seem to do anything for me, that I can tell. I would like to use gcc if possible, and it seems like there should be _some_ way of duplicating the effect of -ieee_with_no_inexact. Could some kind soul point me in the direction of the right system call to convince the Alpha not to dump on an over- or under- flow? The man pages just haven't helped me that much with this one. Thanks much, Randy Smith rsmith@wisp5.physics.wisc.edu