diff options
author | Jing Yu <jingyu@google.com> | 2009-04-28 20:39:11 +0000 |
---|---|---|
committer | Jing Yu <jingyu@gcc.gnu.org> | 2009-04-28 20:39:11 +0000 |
commit | 895302fb3de1bf3c1e680974432033e54949db1e (patch) | |
tree | cce74152729d79fc31c677b66e5533fdfbfd1a81 /gcc/testsuite/gcc.dg/tls | |
parent | 8224166ec8e3c5fba6fe73901edcfbc6d71ac63f (diff) | |
download | gcc-895302fb3de1bf3c1e680974432033e54949db1e.zip gcc-895302fb3de1bf3c1e680974432033e54949db1e.tar.gz gcc-895302fb3de1bf3c1e680974432033e54949db1e.tar.bz2 |
re PR testsuite/39790 (gcc.dg/tls/alias-1.c,opt-2.c fail if TLS is not supported by C library)
PR testsuite/39790
* lib/target-supports.exp (check_effective_target_tls): Remove
comment of caching.
(check_effective_target_tls_native): Likewise.
(check_effective_target_tls_runtime): Likewise.
* gcc.dg/tls/alias-1.c (dg-require-effective-target): Change target
tls to tls_runtime.
* gcc.dg/tls/opt-2.c: Add dg-require-effective-target tls_runtime.
From-SVN: r146913
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/alias-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/opt-2.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/alias-1.c b/gcc/testsuite/gcc.dg/tls/alias-1.c index 28cb47e..722ad215 100644 --- a/gcc/testsuite/gcc.dg/tls/alias-1.c +++ b/gcc/testsuite/gcc.dg/tls/alias-1.c @@ -1,7 +1,7 @@ /* { dg-do link } */ /* { dg-require-alias "" } */ /* { dg-require-visibility "" } */ -/* { dg-require-effective-target tls } */ +/* { dg-require-effective-target tls_runtime } */ /* Test that encode_section_info handles the change from externally defined to locally defined (via hidden). Extracted from glibc. */ diff --git a/gcc/testsuite/gcc.dg/tls/opt-2.c b/gcc/testsuite/gcc.dg/tls/opt-2.c index 8038d1c..0980fab 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-2.c +++ b/gcc/testsuite/gcc.dg/tls/opt-2.c @@ -6,6 +6,7 @@ /* { dg-options "-O2 -ftls-model=initial-exec" } */ /* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-require-effective-target tls_native } */ +/* { dg-require-effective-target tls_runtime } */ __thread int thr; |