On Tue, Mar 18, 2014 at 11:19:52AM +0100, Rainer Orth wrote:
> 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.

Can you please also change
/* { dg-require-effective-target tls } */
to
/* { dg-require-effective-target tls_runtime } */
?

BTW, don't know if dg-add-options tls can come before that or not.

> 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 } */
>  

        Jakub

Reply via email to