Bug Report for EGCS 2.91.66

Mumit Khan khan@xraylith.wisc.EDU
Mon Jul 5 17:24:00 GMT 1999


Rajat Todi <todi@scl.ameslab.gov> writes:
> Hi,
> 
> Here is the bug which I found in the latest version of gcc version
> egcs 2.91.66. 
> 
> Here is the extracted program. I have taken out problem part out
> of the bigger code (PABLO from UIUC research).
> 
> // main.C
> #
> #
> #include <stream.h>
> #include <stdlib.h>
> #include <string.h>
> #include <values.h>
> 
> 
> main( int argc, char **argv ) {
> 
> 	enum Status       { INVALID, VALID };
> 	Status 		     inputFileStatus;
> 
> 	int pktCount = 0;
> 
> 	while(1) {
> 
> 		if ( ( ++pktCount % 1000 ) == 0 ) {
> 			cerr << pktCount << "... ";
> 			cerr.flush();
> 		}
> 	}
> 
> }
> 
> // end of main.C

[ egcs-1.1.2 ICE with -O  ]

Yes, I've run into something very similar with egcs-1.1.x; good
news is that gcc-2.95 seems to have fixed the problem. 

Interestingly enough, the bug only appears in egcs-1.1.x with -Ox, 
x = {1,2}.

Regards,
Mumit



More information about the Gcc-bugs mailing list