From patchwork Mon Oct 8 15:08:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] Require tls_runtime in gcc.target/i386/pr54445-1.c Date: Mon, 08 Oct 2012 05:08:20 -0000 From: Rainer Orth X-Patchwork-Id: 190046 Message-Id: To: gcc-patches@gcc.gnu.org Cc: "H.J. Lu" 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 2012-10-08 Rainer Orth * gcc.target/i386/pr54445-1.c: Require tls_runtime, add tls options. # HG changeset patch # Parent 67ccd7a114e0eaf13cdb8c6d8f109c8fdfb86a96 Require tls_runtime in gcc.target/i386/pr54445-1.c diff --git a/gcc/testsuite/gcc.target/i386/pr54445-1.c b/gcc/testsuite/gcc.target/i386/pr54445-1.c --- a/gcc/testsuite/gcc.target/i386/pr54445-1.c +++ b/gcc/testsuite/gcc.target/i386/pr54445-1.c @@ -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];