public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] testsuite, Darwin, X86 : Add target requires native tls to  test.
@ 2020-11-08  9:32 Iain Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2020-11-08  9:32 UTC (permalink / raw)
  To: GCC Patches

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(+)

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*
-- 
2.24.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-08  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-08  9:32 [pushed] testsuite, Darwin, X86 : Add target requires native tls to test Iain Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).