http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54129
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end Summary|__thread variables and |emulated __thread variables |pthread_*specific data |and pthread_*specific data |destroyed in different | |order on Darwin than Linux | --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-30 19:56:19 UTC --- I don't think this is even defined behavior. Is the order which pthread_*specific data destroyed defined? This is the biggest issue I think.