weird egcs bug

Mo McKinlay mmckinlay@labs.interopen.org
Thu Mar 16 10:38:00 GMT 2000


# What's even weirder is that a printf() will cause the loop to exit, but
# if I replace printf(...) with fprintf(stdout, ...), the program hangs.

# I've tried everything I can think of.  SGI's compiler (please don't
# think that I'm holding it up as a standard of excellence :-) builds
# an executable that doesn't hang.  egcs-2.91.66 on Solaris 2.7 builds
# an executable that doesn't hang.

Okay, I'm officially stumped. The only thing I can think of is an
optimisation bug, although I think this is quite unlikely. Perhaps varying
the -O flags when you compile might yield different results?

[Mo, who's now clutching at straws :)]

-- 
Mo McKinlay                                T: +44 (0) 709 22 55 05  x1
Chief Software Architect                   F: +44 (0) 709 22 55 05  x3
inter/open                                 E: mmckinlay@labs.interopen.org
A division of Bekon Marketing Limited      W: http://www.interopen.org



More information about the Gcc-bugs mailing list