Implement __emutls_get_address for targets like Android that depends on libgcc's emulated thread local storage.
clang/llvm can generate calls to __emutls_get_address since
http://reviews.llvm.org/D10522 and http://reviews.llvm.org/D10524
Differential D12001
Implement __emutls_get_address chh on Aug 12 2015, 5:16 PM. Authored by
Details Implement __emutls_get_address for targets like Android that depends on libgcc's emulated thread local storage. clang/llvm can generate calls to __emutls_get_address since
Diff Detail Event Timeline
Comment Actions I think all suggested changes were made.
Comment Actions That's why I said "or so" :) The attribute unused is fine, but your version doesn't work in file scope, which is where I normally would place compile time asserts. Comment Actions Make COMPILER_ASSERT work at also the file scope.
Comment Actions LG with the one comment about the growth function.
|
Please don't add this to GENERIC_SOURCES. This is really not applicable to all targets. It uses pthread, so it can't be used on say Windows.
This makes me wonder if this actually belongs in the compiler builtins in the first place.