Andrew Pinski wrote: > > 2006-11-07 Bruno Haible <[EMAIL PROTECTED]> > > > > * config/tls.m4 (GCC_CHECK_TLS): Also check whether the libc supports > > TLS via __thread. > > How well does this work with cross compiler?
The proposed patch changes only the ACTION-IF-TRUE argument of an AC_RUN_IFELSE macro; it therefore has no effect on the situation of cross-compiling. When cross-compiling, only this test is executed: AC_COMPILE_IFELSE([__thread int foo;], [have_tls=yes], [have_tls=no]) You could try to add a check for TLS support in libc also for the cross- compiling case, but I don't know how to write such a check (for both GNU libc and Solaris libc) without relying on undocumented internals. Without such a check, people cross-compiling gcc have to think about --enable-tls or --disable-tls, whereas people doing a native build don't have to. Bruno