------- Comment #6 from pinskia at gcc dot gnu dot org 2009-03-05 19:43 ------- (In reply to comment #5) > Yes but this static __thread variable must be freed somehow when the thread > exits.
They are freed when the thread is destroyed or should be. The compiler does not know much about threads here really. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39366