From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63445 invoked by alias); 23 Jan 2017 14:41:32 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 63435 invoked by uid 89); 23 Jan 2017 14:41:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=national, National, him X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Jan 2017 14:41:30 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0NEd3N4060566 for ; Mon, 23 Jan 2017 09:41:28 -0500 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0b-001b2d01.pphosted.com with ESMTP id 285hbfq4yf-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 23 Jan 2017 09:41:28 -0500 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jan 2017 07:41:24 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Jan 2017 07:41:21 -0700 Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 44A7A3E40047; Mon, 23 Jan 2017 07:41:21 -0700 (MST) Received: from b01ledav03.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0NEfJob35258430; Mon, 23 Jan 2017 14:41:20 GMT Received: from b01ledav03.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C094AB2060; Mon, 23 Jan 2017 09:41:20 -0500 (EST) Received: from bigmac.rchland.ibm.com (unknown [9.10.86.122]) by b01ledav03.gho.pok.ibm.com (Postfix) with ESMTPS id 7D31DB205A; Mon, 23 Jan 2017 09:41:20 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: -fsanitize=thread support on ppc64 From: Bill Schmidt In-Reply-To: <20170123143246.GN1867@tucnak> Date: Mon, 23 Jan 2017 14:41:00 -0000 Cc: Maxim Ostapenko , gcc@gcc.gnu.org, Ulrich Weigand Content-Transfer-Encoding: quoted-printable References: <20170123113356.GK1867@tucnak> <5885FCE5.5050504@samsung.com> <96208690-44F0-4648-8C24-4A8DC7966B5F@linux.vnet.ibm.com> <20170123143246.GN1867@tucnak> To: Jakub Jelinek X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17012314-0024-0000-0000-000015C6030E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006484; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000200; SDB=6.00811559; UDB=6.00395690; IPR=6.00588976; BA=6.00005084; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014014; XFM=3.00000011; UTC=2017-01-23 14:41:23 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17012314-0025-0000-0000-0000482EDCA1 Message-Id: <0A781485-6F99-47E6-9563-14EDB0568CF9@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-01-23_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701230202 X-SW-Source: 2017-01/txt/msg00200.txt.bz2 > On Jan 23, 2017, at 8:32 AM, Jakub Jelinek wrote: >=20 > On Mon, Jan 23, 2017 at 08:22:30AM -0600, Bill Schmidt wrote: >> TSan support was contributed to LLVM by a student working at one of the = US=20 >> National Labs a while back. I helped him with some of the PPC assembly >> programming. To my knowledge this is working, but I haven't tested this= with >> GCC. Do you think we want to change the configuration for GCC this late= in the >> release? I can run a quick test with TSan turned on to see where we're = at. >=20 > I think it should be enabled if it works, even this late. > I bet we need something like the following patch on top of > the PR79168 patch. >=20 > I'll test both patches on both ppc64le and ppc64. Sounds good, thanks! Let me know if I can help in any way. >=20 > Another question is, it seems upstream has s390{,x}-*-linux* support for > asan/ubsan, does that work? In that case we should add it to configure.t= gt > too (similarly to the sparc*-*-linux* entry). CCing Uli for the s390 question. Bill >=20 > 2017-01-23 Jakub Jelinek >=20 > * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*. >=20 > --- libsanitizer/configure.tgt.jj 2016-11-09 15:22:50.000000000 +0100 > +++ libsanitizer/configure.tgt 2017-01-23 15:25:21.059399613 +0100 > @@ -1,5 +1,5 @@ > # -*- shell-script -*- > -# Copyright (C) 2012 Free Software Foundation, Inc. > +# Copyright (C) 2012-2017 Free Software Foundation, Inc. >=20 > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > @@ -31,6 +31,11 @@ case "${target}" in > fi > ;; > powerpc*-*-linux*) > + if test x$ac_cv_sizeof_void_p =3D x8; then > + TSAN_SUPPORTED=3Dyes > + LSAN_SUPPORTED=3Dyes > + TSAN_TARGET_DEPENDENT_OBJECTS=3Dtsan_rtl_ppc64.lo > + fi > ;; > sparc*-*-linux*) > ;; >=20 >=20 > Jakub >=20