testsuite, Darwin, X86 : Add target requires native tls to test.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 8 Nov 2020 09:09:32 +0000 (09:09 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 8 Nov 2020 09:09:32 +0000 (09:09 +0000)
The builtin_thread_pointer test does not work for emulated TLS.
Add a target requires to cover this.

gcc/testsuite/ChangeLog:

* gcc.target/i386/builtin_thread_pointer.c: Require native TLS.

gcc/testsuite/gcc.target/i386/builtin_thread_pointer.c

index 16a7ca49b9906d4afd5538653f5f3a7ee9fb74a6..09b704bd5a1d0fa168286e90a12f6e7d5a9fa07d 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target tls_native } */
 /* { dg-options "-mtls-direct-seg-refs -O2 -masm=att" } */
 
 int*