[backport gcc-4.8/trunk r192212 ] From: Rainer Orth Subject: [testsuite] Require tls_runtime in gcc.target/i386/pr54445-1.c Date: Mon, 08 Oct 2012 17:08:20 +0200 List-Archive: gcc.target/i386/pr54445-1.c FAILs to execute on Solaris 9 with native TLS: ld.so.1: pr54445-1.exe: fatal: pr54445-1.exe: object requires TLS, but TLS faile d to initialize The following patch fixes this by both requiring TLS runtime support and adding the necessary options. Tested with the appropriate runtest invocation in i386-pc-solaris2.9 and x86_64-unknown-linux-gnu, installed on mainline. Rainer gcc/testsuite/ 2012-10-08 Rainer Orth * gcc.target/i386/pr54445-1.c: Require tls_runtime, add tls options. --- gcc-4.7.2/gcc/testsuite/gcc.target/i386/pr54445-1.c.~1~ 2012-12-09 15:28:39.000000000 +0100 +++ gcc-4.7.2/gcc/testsuite/gcc.target/i386/pr54445-1.c 2012-12-09 15:30:53.000000000 +0100 @@ -1,5 +1,6 @@ -/* { dg-do run } */ +/* { dg-do run { target tls_runtime } } */ /* { dg-options "-O2" } */ +/* { dg-add-options tls } */ __thread unsigned char tls_array[64];