From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16564 invoked by alias); 30 Mar 2011 14:25:42 -0000 Received: (qmail 16549 invoked by uid 22791); 30 Mar 2011 14:25:41 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_CX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Mar 2011 14:25:34 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 759A66CB00; Wed, 30 Mar 2011 16:25:33 +0200 (CEST) Date: Wed, 30 Mar 2011 14:39:00 -0000 From: Michael Matz To: Aldy Hernandez Cc: Richard Guenther , gcc-patches , Jakub Jelinek Subject: Re: [cxx-mem-model] bitfield tests In-Reply-To: <4D933A2E.9030105@redhat.com> Message-ID: References: <4D92103E.90100@redhat.com> <4D933A2E.9030105@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes 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 X-SW-Source: 2011-03/txt/msg02073.txt.bz2 Hi, On Wed, 30 Mar 2011, Aldy Hernandez wrote: > > > The memory model is not implementable on strict-alignment targets > > that do not have a byte store operation. But we previously said that ;) > > Yes. I think we should issue an error when we have such a target and the user > tries -fmemory-model=c++0x. However, how many strict-alignment targets are > not byte addressable nowadays? Consider cache aliasing, where the unit of coherence (absent using atomic instructions) is for instance 64 bytes. I'm not sure how the mem-model could be implemented without generally falling back to atomics. Or CPU internal write buffers that could (again if there are just normal writes, not atomics) reorder or merge write requests. I think also that would destroy guarantees that the cxx-mem-model tries to provide. Ciao, Michael.