Commit Graph

24 Commits

Author SHA1 Message Date
joerg
38d2602fc1 Update to the most recent version. Among other things, this also solves
the function naming problem for complex double function i've recently
aksed for in -committers.  (The recently committed rev 1.5 of proc.c
was actually also part of this update.)

Should the mailing lists come to an agreement that f2c better belongs
into the ports, this could be done nevertheless.  For the time being,
we've at least got a current version now.

Thanks, Steve!

Submitted by:	Steve Kargl <sgk@troutmask.apl.washington.edu>
1999-02-03 17:23:49 +00:00
simokawa
d5ab25dd2a Replace 'long int' with 'int' for Alpha.
This change should have no effect on i386.

Pointed out by: Steve Kargl <sgk@troutmask.apl.washington.edu>

Quote from http://www.netlib.org/f2c/readme:

NOTE:   f2c.h defines several types, e.g., real, integer, doublereal.
        The definitions in f2c.h are suitable for most machines, but if
        your machine has sizeof(double) > 2*sizeof(long), you may need
        to adjust f2c.h appropriately.  f2c assumes
                sizeof(doublecomplex) = 2*sizeof(doublereal)
                sizeof(doublereal) = sizeof(complex)
                sizeof(doublereal) = 2*sizeof(real)
                sizeof(real) = sizeof(integer)
                sizeof(real) = sizeof(logical)
                sizeof(real) = 2*sizeof(shortint)
        EQUIVALENCEs may not be translated correctly if these
        assumptions are violated.

        On machines, such as those using a DEC Alpha processor, on
        which sizeof(short) == 2, sizeof(int) == sizeof(float) == 4,
        and sizeof(long) == sizeof(double) == 8, it suffices to
        modify f2c.h by removing the first occurrence of "long "
        on each line containing "long ", e.g., by issuing the
        commands
                mv f2c.h f2c.h0
                sed 's/long //' f2c.h0 >f2c.h
        On such machines, one can enable INTEGER*8 by uncommenting
        the typedef of longint in f2c.h, so it reads
                typedef long longint;
        by compiling libI77 with -DAllow_TYQUAD, and by adjusting
        libF77/makefile as described in libF77/README.
1999-01-19 06:48:44 +00:00
dfr
96e043db3a From the submitter:
I found the reason why f77 so offen dies on alpha. Here is a fix.
"Const" is a union of int and double.
If nelt->constblock.Const.ci > 0 then it trys to evaluate it as double
and floating point exception occurs.

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Obtained from: NetBSD
1999-01-10 17:22:49 +00:00
phk
2e8d660a6e During compilation of a Fortran program f2c/f77 will spew the
name of entry points, functions, subroutines, and program to
stderr error.  The enclosed patches do 3 things:

     (1) Silenced the output to stderr.
     (2) Added a -v option to f2c and f77.  This will turn on a verbose
         mode, and dumps quite a bit of stuff to stderr.
     (3) Updated the f2c man page.

PR:		7369
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1998-07-24 07:13:57 +00:00
bde
f1bd1c1014 Fixed `make -jN' for large N. Just put all generated headers in SRCS. 1998-03-06 13:51:18 +00:00
jmz
88cf518a58 Install f2c.h
Reviewed by:	bde
1997-04-24 17:04:04 +00:00
jmz
5d93c9d5fb Upgrade to the 1997/02/19 version. 1997-04-13 01:13:52 +00:00
bde
288ed20d53 Use the same format for the "expect N shift reduce conflicts" message
as in the one other place in /usr/src that prints such an "expect"
message (amd).
1996-10-25 15:50:17 +00:00
scrappy
e216bc2f81 Document f2c's -o option
Closes: PR#docs/1272

Submitted by: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
1996-10-22 05:36:57 +00:00
mpp
c3744ff4f0 Convert f2c.1 to mdoc format.
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1996-05-15 20:27:10 +00:00
mpp
69247d533f Fixed some minor formatting problems to silence manck some more.
Corrected some bogus cross references to man pages that we don't/won't
have and either deleted them, or found a more appropriate man page
that we do have.  Various other minor changes to silence manck.

Manck is currently down to about 200 lines of errors, down from
the 500 - 600+ when I started all this.
1996-02-12 01:20:38 +00:00
peter
c3f352d4ad This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
peter
ab124e78b0 recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
jmz
3ebc291363 Makefile: use CFLAGS+= instead of CFLAGS=. Don't use the f2c's malloc.
main.c: reinstitute the -o option to rename C output file.
1995-09-28 20:43:33 +00:00
jmz
d754070715 Update to the 1995/09/20 version. Previous version was 1993/12/17
The diffs are large mainly because of prototyping changes.
1995-09-28 20:36:16 +00:00
bde
99553d78fd Don't default to -g in ${CFLAGS}. Developers can still use `make g=-g ...'
for debugging.  The default ${CFLAGS} still clobbers the system default
of -O2 to -O.
1995-01-21 14:41:45 +00:00
ljo
8519540a3f Remove the f77 script now that we are instead installing a f77 program
(that does the same as the script). The f77 program lives in cc/f77.
1994-10-27 16:37:39 +00:00
pst
ec3a408274 f77.script resides in source, not obj dir 1994-10-01 19:12:09 +00:00
pst
73f0e01aba Add f77 shell script frontend for f2c/gcc 1994-09-30 06:25:06 +00:00
ats
940016a71c Added the y.tab.h file to the CLEANFILE target. 1994-02-06 01:12:15 +00:00
ljo
e394fc261e Sprinkled with ${.CURDIR} to get the builds of gram.c and tokdefs.h
correct.
1994-01-29 00:48:19 +00:00
ljo
e5c0903835 Added -o option to rename C output file. This only works when Fortran
input is from a file, not stdin. Added some support for this in teh
parse function.
1994-01-12 03:10:31 +00:00
ljo
928a78edfc Replaced makefile with a BSD Makefile. Moved the unformatted man page
to f2c.1. Removed an automatically generated file and a checksum file.
1994-01-05 03:24:01 +00:00
ljo
b0bfbf3dbd f2c from netlib.att.com Jan 4 1994 1994-01-05 02:53:40 +00:00