[testsuite] Always use dg-add-options tls where required
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Thu Aug 26 16:19:00 GMT 2010
Three recent TLS execution tests didn't use dg-add-options tls, which
caused them to fail on Solaris 8 and 9.
The following patch fixes this. Tested on i386-pc-solaris2.9 with the
appropriate runtest invocations. Installed as obvious.
Rainer
2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/tls/thr-init-2.c: Use dg-add-options tls.
* gcc.dg/torture/tls/thr-init-1.c: Likewise.
* gcc.dg/torture/tls/thr-init-2.c: Likewise.
diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/tls/thr-init-2.c
--- a/gcc/testsuite/gcc.dg/tls/thr-init-2.c Mon Aug 23 13:25:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/tls/thr-init-2.c Thu Aug 26 17:44:58 2010 +0200
@@ -1,5 +1,6 @@
/* { dg-require-effective-target tls } */
/* { dg-do run } */
+/* { dg-add-options tls } */
extern void abort() ;
diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c
--- a/gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c Mon Aug 23 13:25:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c Thu Aug 26 17:44:58 2010 +0200
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-require-effective-target tls } */
+/* { dg-add-options tls } */
extern int printf (char *,...);
extern void abort() ;
diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c
--- a/gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c Mon Aug 23 13:25:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c Thu Aug 26 17:44:58 2010 +0200
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-require-effective-target tls } */
+/* { dg-add-options tls } */
extern int printf (char *,...);
extern void abort() ;
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list