re PR testsuite/39790 (gcc.dg/tls/alias-1.c,opt-2.c fail if TLS is not supported...
authorJing Yu <jingyu@google.com>
Tue, 28 Apr 2009 20:39:11 +0000 (20:39 +0000)
committerJing Yu <jingyu@gcc.gnu.org>
Tue, 28 Apr 2009 20:39:11 +0000 (20:39 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/alias-1.c
gcc/testsuite/gcc.dg/tls/opt-2.c
gcc/testsuite/lib/target-supports.exp

index 859fe2e9bd0da78d605d68b690f3c4e9710772eb..938a8e78129064c7607b43fee2f7ec2250e51db1 100644 (file)
@@ -1,3 +1,14 @@
+2009-04-28  Jing Yu  <jingyu@google.com>
+
+       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.
+
 2009-04-28  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/39946
index 28cb47e504190dcac02a68636152c250eb1ad0f9..722ad2154bbe37fb99c7212ed18f0c900b9d1575 100644 (file)
@@ -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.  */
 
index 8038d1c6ffb74e42f95cf544bdef7d004d41d4ee..0980fab612e8590dcfa01169497bf7852a8c909b 100644 (file)
@@ -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;
 
index cf1ed8690db6eb3ff2eadf34790bbf476b888a8c..fb4bc3ead390e946b6f63fd1b2e693c929ae8fc5 100644 (file)
@@ -544,8 +544,6 @@ proc check_effective_target_pcc_bitfield_type_matters { } {
 }
 
 # Return 1 if thread local storage (TLS) is supported, 0 otherwise.
-#
-# This won't change for different subtargets so cache the result.
 
 proc check_effective_target_tls {} {
     return [check_no_compiler_messages tls assembly {
@@ -556,8 +554,6 @@ proc check_effective_target_tls {} {
 }
 
 # Return 1 if *native* thread local storage (TLS) is supported, 0 otherwise.
-#
-# This won't change for different subtargets so cache the result.
 
 proc check_effective_target_tls_native {} {
     # VxWorks uses emulated TLS machinery, but with non-standard helper
@@ -575,8 +571,6 @@ proc check_effective_target_tls_native {} {
 }
 
 # Return 1 if TLS executables can run correctly, 0 otherwise.
-#
-# This won't change for different subtargets so cache the result.
 
 proc check_effective_target_tls_runtime {} {
     return [check_runtime tls_runtime {