[PATCH] AIX native TLS support [3/?]

2012-12-27 Thread David Edelsohn
This patch gets GCC support for native TLS on AIX working and passing most tests. The patch shifts the creation of the qualified symbol name from output_toc() to rs6000_legitimize_tls_address_aix(). I was hoping that the separate SYMBOL_REF would prevent RTL fwprop from becoming confused about the

[PATCH] AIX native TLS support

2012-12-12 Thread David Edelsohn
This is the next set of patches for native TLS support on AIX. This mainly adds support for BSS symbols. This should use local common and I created a tbss section name, but I cannot figure out how to convince the AIX assembler to match the TOC symbols reference to the lcomm symbol. Disassembly of

Re: [PATCH] AIX native TLS support

2012-12-02 Thread David Edelsohn
I checked in the patch. The problem, at least for libgomp testsuite, is GCC is not correctly emitting the definitions of some variables specified with #pragma omp threadprivate(XXX) The symptoms are the variable is placed in a TLS section anchor block, which never should happen, or the BSS varia

[PATCH] AIX native TLS support

2012-11-28 Thread David Edelsohn
Below is a first attempt at native TLS support on AIX. It produces the correct syntax and works for small testcases. All of GCC can build with it enabled, but libstdc++ and libgomp do not run correctly, so I am not enabling it by default. The implementation treats local-dynamic as general-dynami