This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54129] emulated __thread variables and pthread_*specific data
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jul 2012 20:29:05 +0000
- Subject: [Bug middle-end/54129] emulated __thread variables and pthread_*specific data
- Auto-submitted: auto-generated
- References: <bug-54129-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54129
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-30 20:29:05 UTC ---
> In my program, only one destructor function exists.
Yes in your source only has one but the code really there is two. One for the
__thread implementation and one you have in your source.
So I think we might declare this as being unspecified behavior. The same way
the order of the destructor is unspecified.