From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7485 invoked by alias); 27 Oct 2007 13:49:02 -0000 Received: (qmail 7475 invoked by uid 22791); 27 Oct 2007 13:49:01 -0000 X-Spam-Check-By: sourceware.org Received: from anyanka.rfc1149.net (HELO mail2.rfc1149.net) (81.56.47.149) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 27 Oct 2007 13:48:59 +0000 Received: from localhost (localhost [127.0.0.1]) by mail2.rfc1149.net (Postfix) with ESMTP id A1D8BC405B; Sat, 27 Oct 2007 15:48:56 +0200 (CEST) Received: from mail2.rfc1149.net ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k6rRX5OuGDLW; Sat, 27 Oct 2007 15:48:56 +0200 (CEST) Received: by mail2.rfc1149.net (Postfix, from userid 1000) id 704B8C405C; Sat, 27 Oct 2007 15:48:56 +0200 (CEST) Date: Sat, 27 Oct 2007 13:59:00 -0000 To: Florian Weimer Cc: Robert Dewar , Andrew Haley , Bart Van Assche , gcc@gcc.gnu.org, Andrew Pinski , Tomash Brechko Subject: Re: Optimization of conditional access to globals: thread-unsafe? References: <18210.795.425145.46885@zebedee.pink> <47220475.4000703@adacore.com> <2007-10-26-17-59-37+trackit+sam@rfc1149.net> <4722F361.7050302@adacore.com> <871wbgof5f.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871wbgof5f.fsf@mid.deneb.enyo.de> User-Agent: Mutt/1.5.16 (2007-06-11) From: Samuel Tardieu Content-Transfer-Encoding: 8bit X-WWW: http://www.rfc1149.net/sam X-Jabber: (see http://www.jabber.org/) X-OpenPGP-Fingerprint: 79C0 AE3C CEA8 F17B 0EF1 45A5 F133 2241 1B80 ADE6 (see http://www.gnupg.org/) Message-Id: <2007-10-27-15-48-56+trackit+sam@rfc1149.net> 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 X-SW-Source: 2007-10/txt/msg00586.txt.bz2 On 27/10, Florian Weimer wrote: | (I can't reproduce the conditional store with my GCC 4.2 installation, | though.) You need "-O -fno-inline" to trigger it on this particular example (you don't need "-fno-inline" if you put "Lock" in a separate package).