Subject: dreal() and cdexp() missing from F77 compiler Index: usr.bin/f77/intr.c 2.11BSD Description: The builtin functions dreal() and cdexp() show up as undefined when compiling a F77 program imported from 4.3BSD. Repeat-By: Compile the test program below and observe the undefined errors reported by the linker. complex*16 sum,term real*8 sigmar c term = cdexp(sum) sigmar = dreal(sum) end Fix: Apply the following patch to the Fortran compiler. The capability to generate the conversions was already present in the compiler, only the table entries were missing for the two builtin functions. ----------------------------cut here------------------------------------- *** /usr/src/usr.bin/f77/intr.c.old Mon Feb 16 19:57:38 1987 --- /usr/src/usr.bin/f77/intr.c Thu Mar 5 16:48:43 1992 *************** *** 58,63 **** --- 58,64 ---- "int", { INTRCONV, TYLONG }, "real", { INTRCONV, TYREAL }, "dble", { INTRCONV, TYDREAL }, + "dreal", { INTRCONV, TYDREAL }, "cmplx", { INTRCONV, TYCOMPLEX }, "dcmplx", { INTRCONV, TYDCOMPLEX }, "ifix", { INTRCONV, TYLONG }, *************** *** 137,142 **** --- 138,144 ---- "dexp", { INTRSPEC, TYDREAL, 40 }, "cexp", { INTRSPEC, TYCOMPLEX, 41 }, "zexp", { INTRSPEC, TYDCOMPLEX, 42 }, + "cdexp", { INTRSPEC, TYDCOMPLEX, 42 }, "log", { INTRGEN, 4, 43 }, "alog", { INTRSPEC, TYREAL, 43 },