From owner-freebsd-current Wed Dec 23 11:50:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29494 for freebsd-current-outgoing; Wed, 23 Dec 1998 11:50:18 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles246.castles.com [208.214.165.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29486 for ; Wed, 23 Dec 1998 11:50:15 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA03735; Wed, 23 Dec 1998 11:47:41 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812231947.LAA03735@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Steve Kargl cc: mike@smith.net.au (Mike Smith), freebsd-current@FreeBSD.ORG Subject: Re: Fortran conundrum In-reply-to: Your message of "Wed, 23 Dec 1998 08:06:06 PST." <199812231606.IAA17637@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Dec 1998 11:47:40 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > According to Mike Smith: > > > (3) Rip Fortran out of the base distribution. > > > > > > This seem to be the logical choice (provided f2c can be converted > > > to a port). I have been merging our f2c and the sources from netlib > > > with the intend to produce a port. There is, however, one major > > > caveat that needs to be address. /usr/bin/f77 is a driver program > > > which sets up an execution of our Fortran-aware gcc frontend > > > (see src/gnu/usr.bin/cc/f77). I have been unsuccessful in moving this > > > driver out of src/gnu, and still retain its functionality. > > > > Can you clarify on the problems inherent in moving the f77 executable? > > > > f77.c contains #include "config.h", and I haven't located where this > header lives. It defines preprocessor directives like HAVE_VPRINTF, > but it may in fact contain other things that are less obvious to me. It's a one-line file generated at build time by cc_tools/Makefile: config.h hconfig.h tconfig.h: echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > ${.TARGET} which includes src/contrib/gcc/config//xm-freebsd.h, which in turn includes src/contrib/gcc/config//xm-.h and src/contrib/gcc/config/xm-freebsd.h, which defines: #define HAVE_PUTENV #define HAVE_STRERROR #define DONT_DECLARE_SYS_SIGLIST #define HOST_PTR_PRINTF "%p" > I'm still looking at what I can do with f77.c. I've submitted a > PR that removes quite a bit of dead code in f77.c. If you're continuing on your way to extracting it completely from the tree, the PR should be ignored for now, correct? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message