This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Possible bug in egcs 1.1.2 gcc/cccp.c
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Possible bug in egcs 1.1.2 gcc/cccp.c
- From: Martin Wawro <wawro at euklid dot cs dot uni-dortmund dot de>
- Date: Fri, 25 Jun 1999 19:23:41 +0200 (MET DST)
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.
--------------------------------------------------------