From patchwork Sun Nov 3 08:29:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1188516 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-512270-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="b/saH5Ue"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 475TcN2MR2z9sP3 for ; Sun, 3 Nov 2019 19:29:22 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; q=dns; s=default; b=VagcmhgJjjmL+lOYYw+/fbx si7YKhP2J3dZxLvNx5/UjLI4gJV28wEVa8dP9okYOmNv4TxRVTxMlg43Phzmnd4o 25w14IqhH51C5Os/UDpDoC9w5uLs0rMvudF0PHslaxxTNTzx9MzeBPNpUsaRgtps nE98UBQJplMAqTYI9ODg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=default; bh=XaOhizqIj/QKpkutdu9C+c2aM2s=; b= b/saH5UeGG8RDoQwe5L7LTaJFKKkm523xQPB2F0yjE+nEazLDjQXuYp+d3nj1Wye axjsJAowmZRHFAwzh+QzfOxpHvrmfSHXSUjgTwOj2bl1O0wCBZxG3Vmr95rQiaWs 3E4A5EsrQGY9rTpkeqv24HE+Nbtd5rErEIBCuQfE664= Received: (qmail 87923 invoked by alias); 3 Nov 2019 08:29:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 87913 invoked by uid 89); 3 Nov 2019 08:29:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*uk, H*F:D*co.uk, 37, gcc-8 X-HELO: smtp1.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp1.wavenetuk.net) (195.26.36.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Nov 2019 08:29:12 +0000 Received: from [192.168.1.212] (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp1.wavenetuk.net (Postfix) with ESMTPA id 6A6FF1200642 for ; Sun, 3 Nov 2019 08:29:09 +0000 (GMT) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, testsuite, committed] Fix PR 79274 Message-Id: Date: Sun, 3 Nov 2019 08:29:02 +0000 To: GCC Patches The solution for initialising global TLS variables does not apply to platforms using emulated TLS. On later branches this test requires native TLS. Rather than make that change (especially late on gcc-7) I’ve XFAILed the test for this on Darwin. tested on x86_64-darwin16, powerpc-darwin9, x86_64-linux-gnu applied to gcc-8 and gcc-7 branches thanks Iain gcc/testsuite/ 2019-11-03 Iain Sandoe PR c++/79274 * g++.dg/tls/pr77285-2.C: XFAIL test for Darwin. diff --git a/gcc/testsuite/g++.dg/tls/pr77285-2.C b/gcc/testsuite/g++.dg/tls/pr77285-2.C index bac273a4d6..459ecc6555 100644 --- a/gcc/testsuite/g++.dg/tls/pr77285-2.C +++ b/gcc/testsuite/g++.dg/tls/pr77285-2.C @@ -3,7 +3,7 @@ // { dg-require-effective-target tls } // { dg-final { scan-assembler "_Z4var1B3tag" } } // { dg-final { scan-assembler "_Z4var2B3tag" } } -// { dg-final { scan-assembler "_ZTH4var1B3tag" } } +// { dg-final { scan-assembler "_ZTH4var1B3tag" { xfail *-*-darwin* } } } // { dg-final { scan-assembler "_ZTW4var1B3tag" } } struct __attribute__((abi_tag("tag"))) X { ~X () {} int i = 0; };