]> granicus.if.org Git - clang/commit
Revert r180739 and r180748: they broke C++11 thread_local on non-Darwin systems and...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 30 Apr 2013 21:34:13 +0000 (21:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 30 Apr 2013 21:34:13 +0000 (21:34 +0000)
commit8f4bdc0e37b4b24a58a15ecf41d1355a3b3fdcbb
treefe4b0de7ef2af4c48968a747b430fe94cafe640b
parent9b1317531d376738fd6631291b0a04109c76a63b
Revert r180739 and r180748: they broke C++11 thread_local on non-Darwin systems and did not do the right thing on Darwin.

Original commit message:

Emit the TLS intialization functions into a list.

Add the TLS initialization functions to a list of initialization functions. The
back-end takes this list and places the function pointers into the correct
section. This way they're called before `main().'

<rdar://problem/13733006>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180809 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/tls-init-funcs.cpp [deleted file]