This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: libgcc: Enable TLS for Linux/x86
On Jul 5, 2007, "H.J. Lu" <hjl@lucon.org> wrote:
> On Thu, Jul 05, 2007 at 09:43:11AM -0400, Daniel Jacobowitz wrote:
>> On Thu, Jul 05, 2007 at 06:29:06AM -0700, H.J. Lu wrote:
>> > This patch enables TLS for Linux/x86 in libgcc. libbid needs it
>> > for thread-safty. Tested on Linux/x86.
>>
>> How can you get away without any configure check that __thread is
>> present?
> My original patch checks TLS support. The comments I got were to
> enable TLS for Linux/x86 in config.host:
> http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01475.html
The compiler supports __thread regardless of assembler or libc support
since 2007-02-10.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}