Hello!
Some -pie TLS tests are unsupported due to "TLS local exec code cannot
be linked into shared objects".
2011-06-22 Uros Bizjak <[email protected]>
* gcc.dg/torture/tls/run-le.c: Skip for -pie on alpha*-*-linux*.
* gcc.dg/torture/tls/tls-test.c: Ditto.
* gcc.dg/torture/tls/thr-init-1.c: Ditto.
* gcc.dg/torture/tls/thr-init-2.c: Ditto.
Tested on alphaev68-pc-linux-gnu, committed to mainline SVN.
Uros.
Index: gcc.dg/torture/tls/tls-test.c
===================================================================
--- gcc.dg/torture/tls/tls-test.c (revision 175285)
+++ gcc.dg/torture/tls/tls-test.c (working copy)
@@ -2,6 +2,7 @@
/* { dg-require-effective-target tls } */
/* { dg-require-effective-target pthread } */
/* { dg-options "-pthread" } */
+/* { dg-skip-if "TLS local exec code cannot be linked into shared objects" {
alpha*-*-linux* } { "-pie" } { "" } } */
#include <pthread.h>
extern int printf (char *,...);
Index: gcc.dg/torture/tls/run-le.c
===================================================================
--- gcc.dg/torture/tls/run-le.c (revision 175285)
+++ gcc.dg/torture/tls/run-le.c (working copy)
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-require-effective-target tls_runtime } */
/* { dg-add-options tls } */
+/* { dg-skip-if "TLS local exec code cannot be linked into shared objects" {
alpha*-*-linux* } { "-pie" } { "" } } */
extern void abort (void);
Index: gcc.dg/torture/tls/thr-init-1.c
===================================================================
--- gcc.dg/torture/tls/thr-init-1.c (revision 175285)
+++ gcc.dg/torture/tls/thr-init-1.c (working copy)
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-require-effective-target tls_runtime } */
/* { dg-add-options tls } */
+/* { dg-skip-if "TLS local exec code cannot be linked into shared objects" {
alpha*-*-linux* } { "-pie" } { "" } } */
extern int printf (char *,...);
extern void abort() ;
Index: gcc.dg/torture/tls/thr-init-2.c
===================================================================
--- gcc.dg/torture/tls/thr-init-2.c (revision 175285)
+++ gcc.dg/torture/tls/thr-init-2.c (working copy)
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-require-effective-target tls_runtime } */
/* { dg-add-options tls } */
+/* { dg-skip-if "TLS local exec code cannot be linked into shared objects" {
alpha*-*-linux* } { "-pie" } { "" } } */
extern int printf (char *,...);
extern void abort() ;