http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45841
--- Comment #18 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2010-10-05 01:58:45 UTC --- (In reply to comment #16) > What the testcase ends up doing is extending the file and then reading past > EOF. That's not illegal behavior and the case as written should still pass > after comparing EOF == EOF, just as it did before my patch. > > Hmm, yep, caught a bug in my patch! Thanks! Um... let me see if I got this right: the simulator with a buggy lseek caught a bug in your patch not seen in a correctly working environment? (That could actually be issue #3.) If so, I think that makes the top 5 weird bug behaviors in my experience! (Ok, only some 22 years, nothing to speak of.) Don't forget that for the new patch, I think we need a separate new regression test-case, one that "works" without relying on buggy simulators. :-D