[pushed] testsuite, Darwin, X86 : Add target requires native tls to test.

Message ID FCAAECDD-F17E-457C-ADDB-5C0304FB8E10@sandoe.co.uk
State New
Headers show
Series
  • [pushed] testsuite, Darwin, X86 : Add target requires native tls to test.
Related show

Commit Message

Iain Sandoe Nov. 8, 2020, 9:32 a.m.
Hi

The builtin_thread_pointer test does not work for emulated TLS.
Add a target requires to cover this.

tested on x86_64-darwin, x86_64-linux-gnu
pushed to master,
Iain

gcc/testsuite/ChangeLog:

	* gcc.target/i386/builtin_thread_pointer.c: Require native TLS.
---
 gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.24.1

Patch

diff --git a/gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c b/gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c
index 16a7ca49b99..09b704bd5a1 100644
--- a/gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c
+++ b/gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target tls_native } */
 /* { dg-options "-mtls-direct-seg-refs -O2 -masm=att" } */
 
 int*