The new gcc.dg/tls/pr58595.c testcase FAILs on Solaris 9:

FAIL: gcc.dg/tls/pr58595.c (test for excess errors)
Excess errors:
Undefined                       first referenced
 symbol                             in file
___tls_get_addr                     /var/tmp//ccuBbAna.o
ld: fatal: Symbol referencing errors. No output written to ./pr58595.exe
WARNING: gcc.dg/tls/pr58595.c compilation failed to produce executable

Fixed as follows, tested with the appropriate runtest invocation on
i386-pc-solaris2.9, i386-pc-solaris2.11, and x86_64-unknown-linux-gnu,
installed on mainline.

        Rainer


2014-03-18  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

        * gcc.dg/tls/pr58595.c: Add tls options.

# HG changeset patch
# Parent cb2102d4cf2a47e2919e0b0d88292d05d340f914
Fix gcc.dg/tls/pr58595.c on Solaris 9

diff --git a/gcc/testsuite/gcc.dg/tls/pr58595.c b/gcc/testsuite/gcc.dg/tls/pr58595.c
--- a/gcc/testsuite/gcc.dg/tls/pr58595.c
+++ b/gcc/testsuite/gcc.dg/tls/pr58595.c
@@ -2,6 +2,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2" } */
 /* { dg-additional-options "-fpic" { target fpic } } */
+/* { dg-add-options tls } */
 /* { dg-require-effective-target tls } */
 /* { dg-require-effective-target sync_int_long } */
 
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to