------- Comment #17 from jvdelisle at gcc dot gnu dot org 2008-02-07 15:01 ------- Once again, good detective work by jpr. This then does make this a regression wrt 4.1. I do not have a 4.1 build on my windows machine to check. Regardless ...
This begs a question. Why do we even want locking on internal units? The string is local to the thread and allocated on the stack most likely. I am not sure that another thread can even see it. The unit structure is created on a per READ/WRITE basis and is freed after the operation is complete. Anyone else have any thoughts on this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063