From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101346 invoked by alias); 24 May 2019 07:43:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 101338 invoked by uid 89); 24 May 2019 07:43:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_COUK,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:ESMTPA X-HELO: smtp2.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp2.wavenetuk.net) (195.26.37.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 May 2019 07:43:03 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp2.wavenetuk.net (Postfix) with ESMTPA id 5CA1E600193; Fri, 24 May 2019 08:43:00 +0100 (BST) From: Iain Sandoe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [PATCH, x86, testsuite] Two tests that need to be native TLS? Message-Id: <3E4CAD78-B9ED-422B-AED0-2D880C4D30D3@sandoe.co.uk> Date: Fri, 24 May 2019 07:43:00 -0000 Cc: Uros Bizjak To: GCC Patches X-SW-Source: 2019-05/txt/msg01649.txt.bz2 Hi Uros, The following two tests fail on Darwin, which is an emulated TLS target. ISTM that the tests really required native support, so that the right fix is to require that. (I can skip them for Darwin, if this isn=E2=80=99t the = right solution). OK? thanks Iain gcc/testsuite/ * gcc.target/i386/pr86257.c: Require native TLS support. * gcc.target/i386/stack-prot-sym.c: Likewise. diff --git a/gcc/testsuite/gcc.target/i386/pr86257.c b/gcc/testsuite/gcc.ta= rget/i386/pr86257.c index 07fbba9..bc758c2 100644 --- a/gcc/testsuite/gcc.target/i386/pr86257.c +++ b/gcc/testsuite/gcc.target/i386/pr86257.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target lp64 } */ /* { dg-require-effective-target fpic } */ -/* { dg-require-effective-target tls } */ +/* { dg-require-effective-target tls_native } */ /* { dg-options "-g -fPIC -mtls-dialect=3Dgnu" } */ =20 __thread int i; diff --git a/gcc/testsuite/gcc.target/i386/stack-prot-sym.c b/gcc/testsuite= /gcc.target/i386/stack-prot-sym.c index 7f63424..dcd7cbd 100644 --- a/gcc/testsuite/gcc.target/i386/stack-prot-sym.c +++ b/gcc/testsuite/gcc.target/i386/stack-prot-sym.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target tls_native } */ /* { dg-options "-O2 -fstack-protector-all -mstack-protector-guard=3Dtls -= mstack-protector-guard-reg=3Dgs -mstack-protector-guard-symbol=3Dmy_guard" = } */ =20 void f(void) { }