g77: read/write file access

Toon Moene toon@moene.indiv.nluug.nl
Mon Jan 8 16:51:00 GMT 2001


Thomas Henlich wrote:

> I noticed the following bug in g77 (gcc-2.95,2, DOS/djgpp and Windows
> NT/mingw32 ports):

Hmmmm, it does work correctly for me, on Debian GNU/Linux 2.2 (potato):

toon@laptop:~/g77-bugs$ /usr/bin/g77 -v henlich.f
g77 version 2.95.2 20000220 (Debian GNU/Linux) (from FSF-g77 version
0.5.25 19991030 (prerelease))
Driving: /usr/bin/g77 -v henlich.f -lg2c -lm
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
 /usr/lib/gcc-lib/i386-linux/2.95.2/f771 henlich.f -quiet -dumpbase
henlich.f -version -fversion -o /tmp/ccdC94Ia.s
GNU F77 version 2.95.2 20000220 (Debian GNU/Linux) (i386-linux) compiled
by GNU C version 2.95.2 20000220 (Debian GNU/Linux).
GNU Fortran Front End version 0.5.25 19991030 (prerelease)
 as -V -Qy -o /tmp/cc7dkiQA.o /tmp/ccdC94Ia.s
GNU assembler version 2.9.5 (i386-linux) using BFD version 2.9.5.0.37
 /usr/lib/gcc-lib/i386-linux/2.95.2/collect2 -m elf_i386 -dynamic-linker
/lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i386-linux/2.95.2/crtbegin.o
-L/usr/lib/gcc-lib/i386-linux/2.95.2 /tmp/cc7dkiQA.o -lg2c -lm -lgcc -lc
-lgcc /usr/lib/gcc-lib/i386-linux/2.95.2/crtend.o /usr/lib/crtn.o
toon@laptop:~/g77-bugs$ ./a.out
toon@laptop:~/g77-bugs$ cat tst.txt
one
2

which makes it quite plausible that the connection between libg2c (the
Fortran run-time library) and the underlying OS is not functioning
correctly.

(Un)fortunately, I do not have access to ports to MS OS's, so I cannot
find out why this is the case.

1/2 :-)

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


More information about the Gcc-bugs mailing list