[1504] in Athena Bugs

home help back first fref pref prev next nref lref last post

F77 bugs

daemon@ATHENA.MIT.EDU (adtaiwo@ATHENA.MIT.EDU)
Fri Dec 9 11:21:25 1988

From: <adtaiwo@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Fri, 09 Dec 88 11:20:27 EST
Hi,
	I finally tracked down the bug. The compiler does not send a substring
to te rename function, rather it sends the adress of the char *variable. This
is a string with a lot of blank spaces, e.g. "prm                  " of course
the operating system returns ENOENT. The compiler somehow botches this return
value and this is why the test loop is always ignored.

Summary:
	F77 does not handle substrings properly.
	F77 botches return values of functions,
	even a line of the type "call exit(1)" in your fortran program does
not return 1 to the calling program (operating system,at least not to dbx.)
	I have a temporary fix, a little C stub that scans the *from and *to 
parameters before passing them to rename, from the C function library rather
than the one from the fortran function library.
	Thank you.		-adtaiwo

home help back first fref pref prev next nref lref last post