[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#309193: /usr/bin/gcc: at runtime, TLS does not work, but at compile time, __thread does not give an error



On Sun, May 15, 2005 at 02:46:49PM +0200, Jeroen N. Witmond wrote:
> In the configure.in for the program I am working on, the reaction of
> the compiler to the __thread keyword is used to determine the
> availability of TLS. However, the compiler does not complain but the
> variables marked with __thread are not local to the thread.

Test case?

Also, note that this is an unsound way to test for TLS.  The compiler,
assembler, linker, C library, and on some platforms kernel must all
support it.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: