The attached patch fixes gcc.dg/lto/20090210_0.c link test for targets that require C library support for TLS, e.g., m68k [*]. The patch changes the condition on the test from requiring theoretical TLS support, to requiring the toolchain to be able to link a program which uses TLS.
[*] M68k TLS ABI defines __m68k_read_tp() function to access thread-local storage, and to my knowledge, only GLIBC implements this, which makes the test fail on m68k-uclinux. Thanks, -- Maxim Kuvyrkov Mentor Graphics / CodeSourcery +7-812-677-6839
fsf-gcc-odd-tls-fix.ChangeLog
Description: Binary data
fsf-gcc-odd-tls-fix.patch
Description: Binary data