From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29780 invoked by alias); 15 Apr 2009 15:30:57 -0000 Received: (qmail 29749 invoked by uid 22791); 15 Apr 2009 15:30:56 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 15:30:51 +0000 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id n3FFUkqF004005; Wed, 15 Apr 2009 16:30:46 +0100 Received: from localhost.localdomain.google.com (dhcp-172-22-125-203.mtv.corp.google.com [172.22.125.203]) (authenticated bits=0) by wpaz9.hot.corp.google.com with ESMTP id n3FFUhdi020011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 15 Apr 2009 08:30:44 -0700 To: Martin Sustrik Cc: gcc-help@gcc.gnu.org Subject: Re: C thread local storage support References: <49E5CBCC.5000601@fastmq.com> From: Ian Lance Taylor Date: Wed, 15 Apr 2009 15:30:00 -0000 In-Reply-To: <49E5CBCC.5000601@fastmq.com> (Martin Sustrik's message of "Wed\, 15 Apr 2009 13\:58\:04 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00176.txt.bz2 Martin Sustrik writes: > GCC documentation on thread-local variables says: > > "It requires significant support from the linker (ld), dynamic linker > (ld.so), and system libraries (libc.so and libpthread.so), so it is > not available everywhere." > > Is there any way to find out which platforms do support TLS and which > do not? You can try it and see what happens. In what context are trying to find out whether it works? In general it should be supported on Linux kernels with version >= 2.6.0 and using a sufficiently recent glibc--I think 2.4 should suffice. It should also work on sufficiently recent Solaris systems. I don't know about other systems. Ian