This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible bug in egcs 1.1.2 gcc/cccp.c


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.
--------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]