Re: g77 -mieee no longer the same
>On Tue, 7 Jul 1998, James D. Freels wrote:
>
>> Just in case it is not generally known, the option of "-mieee", which
>> used to allow divide by zeros under Debian/Linux for the DEC-Alpha is
>> no longer effective. For example compilation using
>> where testit.f is shown below produces a core dump at the exception
>> rather than a normal completion. Please provide a workaround or a
>> solution.
>
>It runs fine on mine. It doesn't even core dump when compiled without
>-mieee, just coughs with an FPE. Send me your output and machine
>specifics and I'll see what I can figure out....
>
>C
machine specifics: Microway 500Mhz Alpha, 256 Mb ram
Debian/Alpha hamm at current level of upgrade
g77 2.90.29-0.6
2.1.107 kernel
output from testit:
1. 2. 0.5
Floating Exception
Aborted (core dumped)
desired behavior:
Print out a NaN or Inf or something like that and continue on to
the next statement. If I am using a large legacy fortran code with
lots of floating point exceptions, the present behavior would be
unacceptable. See -fpe1 or -fpe2 options on DEC-Unix f77 and do
something similar.
testit.f:
_______________________________
program test
c
c program to test g77 on i386 and alpha
c
x=1.0
y=0.0
z=2.0
a=x/z
write(*,*)x,z,a
b=x/y
write(*,*)x,y,b
end
_________________________________
--
/------------------------------------------------------------------\
|James D. Freels, P.E._i, Ph.D. |Phone: (423)576-8645 | | L | A |
|Oak Ridge National Laboratory |FAX: (423)574-9172 | H | I | L |
|Research Reactors Division |work e-m: fea@ornl.gov| F | N | P |
|P. O. Box 2008 |home e-m: fea@icx.net | I | U | H |
|Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
\------------------------------------------------------------------/
--
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: