From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6417 invoked by alias); 6 Sep 2003 08:55:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6407 invoked from network); 6 Sep 2003 08:55:42 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (216.148.227.85) by sources.redhat.com with SMTP; 6 Sep 2003 08:55:42 -0000 Received: from comcast.net (12-238-57-93.client.attbi.com[12.238.57.93]) by comcast.net (rwcrmhc12) with SMTP id <2003090608554201400giebue> (Authid: bdavis9659); Sat, 6 Sep 2003 08:55:42 +0000 Message-ID: <3F59A0D0.8000102@comcast.net> Date: Sat, 06 Sep 2003 08:55:00 -0000 From: Bud Davis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030708 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dpowel3@umbc.edu, gcc-help@gcc.gnu.org Subject: Re: g77 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00064.txt.bz2 g77 does not have a compiler option similar to -i8 -r8. INTEGER*8 and DOUBLE PRECISION are implemented, however. Here are some compiler options that may have some bearing on your problem: (copied from info g77) `-fno-automatic' Treat each program unit as if the `SAVE' statement was specified for every local variable and array referenced in it. Does not affect common blocks. (Some Fortran compilers provide this option under the name `-static'.) `-finit-local-zero' Specify that variables and arrays that are local to a program unit (not in a common block and not passed as an argument) are to be initialized to binary zeros. Since there is a run-time penalty for initialization of variables that are not given the `SAVE' attribute, it might be a good idea to also use `-fno-automatic' with `-finit-local-zero'. Lot's of time the "nan" problem is caused by un-initialized variables, and the two options above are done by default in some fortran compilers. regards, bud davis