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  <r...@cebitec.uni-bielefeld.de>

        * 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];
 
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to