+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
/* { 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. */
/* { 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;
}
# 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 {
}
# 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
}
# 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 {