From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27749 invoked by alias); 4 Jan 2015 21:58:02 -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 27631 invoked by uid 89); 4 Jan 2015 21:58:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: resqmta-po-09v.sys.comcast.net Received: from resqmta-po-09v.sys.comcast.net (HELO resqmta-po-09v.sys.comcast.net) (96.114.154.168) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 04 Jan 2015 21:58:00 +0000 Received: from resomta-po-07v.sys.comcast.net ([96.114.154.231]) by resqmta-po-09v.sys.comcast.net with comcast id bxxt1p0034zp9eg01xxyfa; Sun, 04 Jan 2015 21:57:58 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-07v.sys.comcast.net with comcast id bxxw1p00P2ztT3H01xxxLR; Sun, 04 Jan 2015 21:57:57 +0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] Fix sporadic failure in g++.dg/tsan/aligned_vs_unaligned_race.C From: Mike Stump In-Reply-To: Date: Sun, 04 Jan 2015 21:58:00 -0000 Cc: Jakub Jelinek , "gcc-patches@gcc.gnu.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: ,<3C12133C-DABF-40FA-94F7-9DB785F6E914@comcast.net> ,<18CD1660-7BFC-4E97-85E2-B523365E8E86@comcast.net> To: Bernd Edlinger X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00100.txt.bz2 On Jan 4, 2015, at 1:48 PM, Bernd Edlinger wrot= e: > I would need a way to link the test case two helper functions, that are n= ot compiled with -fsanitize=3Dthread /* { dg-additional-sources =93tsan-helper.c" } */ might be one step forward to do that. I don=92t know off hand about the op= tions. I think you may be able to specify unique options per file. > I tried, it and it works 10.000 times without one failure. So, statistically knowing it works in practice is nice. However, the stand= ard is, does is work by design? I=92ll let you comment on that. The sync = approach I designed to work in any case, no matter the complexity, by desig= n. I=92d assume that you=92ve engineered it to work by design.