From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93394 invoked by alias); 23 Jan 2017 14:47:25 -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 93335 invoked by uid 89); 23 Jan 2017 14:47:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=powerpc64**linux*, powerpc64*-*-linux*, TSAN, powerpc*linux X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Jan 2017 14:47:18 +0000 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AEF537E9C8; Mon, 23 Jan 2017 14:47:18 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-117-185.ams2.redhat.com [10.36.117.185]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2ED866D989; Mon, 23 Jan 2017 14:47:18 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id v0NElEeg003614; Mon, 23 Jan 2017 15:47:14 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id v0NElCJk003613; Mon, 23 Jan 2017 15:47:12 +0100 Date: Mon, 23 Jan 2017 14:47:00 -0000 From: Jakub Jelinek To: Bill Schmidt Cc: Maxim Ostapenko , gcc@gcc.gnu.org Subject: Re: -fsanitize=thread support on ppc64 Message-ID: <20170123144712.GO1867@tucnak> Reply-To: Jakub Jelinek References: <20170123113356.GK1867@tucnak> <5885FCE5.5050504@samsung.com> <96208690-44F0-4648-8C24-4A8DC7966B5F@linux.vnet.ibm.com> <20170123143246.GN1867@tucnak> <55FB7688-B7C0-4C8C-BB76-AB26CEB98C0F@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55FB7688-B7C0-4C8C-BB76-AB26CEB98C0F@linux.vnet.ibm.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00202.txt.bz2 On Mon, Jan 23, 2017 at 08:45:16AM -0600, Bill Schmidt wrote: > > 2017-01-23 Jakub Jelinek > > > > * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*. > > > > --- 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. > > > > # 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*) > > I think you want a separate entry for powerpc64*-*-linux* -- IIRC, the > existing code will definitely not work for 32-bit due to TLS differences. > Thus be sure we don't enable TSAN for powerpc-*-linux. That is handled by the > > + if test x$ac_cv_sizeof_void_p = x8; then test (similarly how for both i?86-*-linux* and x86_64-*-linux* it is enabled only for LP64 multilib and not others). We want to enable it only for the 64-bit multilib, not 32-bit. > > + TSAN_SUPPORTED=yes > > + LSAN_SUPPORTED=yes > > + TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo > > + fi > > ;; > > sparc*-*-linux*) > > ;; Jakub