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]

Re: weird egcs bug



# 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


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