From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,84278579ba085c08 X-Google-Attributes: gid111c93,public From: fea@fea.rrd.ornl.gov (James D. Freels) Subject: Re: FP exceptions on redhat 5.1 Date: 1998/09/16 Message-ID: #1/1 X-Deja-AN: 391839365 References: <35F9BAB0.5DDE@wizard.com> <6totkh$7pj$1@news.tuwien.ac.at> Content-Type: text/plain; charset=US-ASCII Organization: Oak Ridge National Lab, Oak Ridge, TN Mime-Version: 1.0 (generated by tm-edit 7.106) Newsgroups: comp.os.linux.alpha andi@complang.tuwien.ac.at (Andreas Krall) writes: > I compiled this program using gcc with -mieee, egcs with -mieee and the > Digital cc with -ieee. The programs works correct (printing NaN's and > Inf's) under Digital Unix, but does not work under Linux. Under Linux > it just throws an exception. I also tried a static linked version from > Digital Unix under Linux and it didn't work, it throws an exception. This > shows that the floating point trap handler is integrated into the OS > and not linked to the program. The question now is, why does the IEEE > arithmetic not work under Linux (Alpha, redhat 4.2). I need this info > urgently to release the new version of our Java JIT compiler not only > for Digital Unix but also for Linux. I too have had this same problem with g77. My legacy FORTRAN code will not run correctly under Linux; even with -mieee and/or statically linked DU f77 code. If this problem could be fixed, I would run Linux all the time on the alpha. As it stands now, I must run DU to do my work. One could argue: don't write code with floating point exceptions. Agreed it is bad code, but several hundered thousand lines of legacy FORTRAN is too much to fix. It is cheaper to buy the DU.