Possible bug in egcs 1.1.2 gcc/cccp.c
Martin Wawro
wawro@euklid.cs.uni-dortmund.de
Fri Jun 25 10:23:00 GMT 1999
Hi,
When building the egcs-1.1.2 distribution on a RH5.x
Linux box with glibc2.1 I discovered a possible bug
in the gcc/cccp.c file.
When building the stage1 compiler, the resulting
pre-processor executable (cccp) segfaults when
issueing the fclose() command (on glibc2.1 only).
The reason seems to be the following line:
cccp.c:2296:
if (ferror(stdout) || fclose(stdout) != 0)
When removing the fclose(), everything just compiles fine.
It seems, that glibc2.1 doesn't like stdout to be closed ?
Other information:
Compiler used: egcs-1.1.2 (compiled under glibc2.0.6)
Binutils 2.9.1
RH Linux 5.0 on a dual P166MMX
With best regards,
--------------------------------------------------------
Martin Wawro | http://ls7-www.cs.uni-dortmund.de/~wawro
LS7, Dept. of Computer Science, University of Dortmund
--------------------------------------------------------
Only two of my personalities are schizophrenic, but one
of them is paranoid and the other one is out to get him.
--------------------------------------------------------
More information about the Gcc-bugs
mailing list