From owner-freebsd-hackers Tue May 21 23:16:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA20215 for hackers-outgoing; Tue, 21 May 1996 23:16:38 -0700 (PDT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA20210 for ; Tue, 21 May 1996 23:16:37 -0700 (PDT) Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.7.5/8.7.3) id XAA07591 for freebsd-hackers@freefall.cdrom.com; Tue, 21 May 1996 23:16:48 -0700 (PDT) From: "Steven G. Kargl" Message-Id: <199605220616.XAA07591@troutmask.apl.washington.edu> Subject: Potential f77 bugs To: freebsd-hackers@freefall.FreeBSD.org (FreeBSD Hackers) Date: Tue, 21 May 1996 23:16:48 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hackers, I've been looking at the current implementation of the f77 wrapper utility for the f2c+gcc combo, and I've discovered some potential bugs with the way options are handled. (Actually, J Wunsch pointed out the inconsistencies.) According to the source (see gcc.c), the -onetrip f2c option should be honored. Thus, %f77 -onetrip file.f should cause DO loops to be executed at least once. However, you end up with an a.out file named netrip. Other problems involve the -kr and -krd f2c options. %gcc -kr file.c %gcc -krd file.c work without reporting that the -k[] option is not valid for a C file compilation. The language specification for Fortran within gcc.c is quite bogus. Thus, I have written a new f77 wrapper utility that handles the f2c and gcc options. Additionally, I have written a short man page describing the new f77 utility. It should be noted that my f77 command does not currently support all f2c and gcc options (many don't make sense to use). If there is interest, I will submit a GNAT report with an 8k+ uuencode, gzipped tar file. -- Steve Permission is hereby granted to forward this message in its entirety to whomever you like unless I explicitly state that the content is confidential.