Patchwork [testsuite] Always use dg-add-options tls where required

login
register
mail settings
Submitter Rainer Orth
Date Aug. 26, 2010, 3:53 p.m.
Message ID <yddk4nd74le.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/62784/
State New
Headers show

Comments

Rainer Orth - Aug. 26, 2010, 3:53 p.m.
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.

Patch

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() ;