From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16300 invoked from network); 2 Sep 1998 01:27:17 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 2 Sep 1998 01:27:16 -0000 Received: from ares.cs.Virginia.EDU (ftp.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA26965 for ; Tue, 1 Sep 1998 21:28:03 -0400 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id VAA21199 for ; Tue, 1 Sep 1998 21:27:06 -0400 (EDT) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id VAA29660 for axp-list@redhat.com; Tue, 1 Sep 1998 21:27:06 -0400 (EDT) Date: Tue, 1 Sep 1998 21:27:06 -0400 (EDT) Message-Id: <199809020127.VAA29660@adder.cs.Virginia.EDU> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: axp-list@redhat.com Subject: Re: g77 problems > My FORTRAN program works fine using fort77 but fails due to > Floating Exception when I use g77 compiler. I have been debugging > this program and when I insert a write(*,*) statement > in one of the subroutines the programs executes fine. I used > xxgdb to debug the program and it showed problem in cosine function > (libm). A floating point exception that comes and goes when you insert a write(*,*) is usually a sign of an incorrect program. Different compilers will then give different answers. Try turning on bounds checking in fort77, etc, to try to find your bug. If you are overwriting memory, writing an integer value into a floating point variable sometimes produces a denormalized number, which results in a crash on the alpha. On the other hand, you may be really generating a denorm. In that case compiling with g77 -mieee may be the fix. But in that case fort77 should also be showing a floating exception. -- g