From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16674 invoked by alias); 23 Jun 2010 10:36:18 -0000 Received: (qmail 16665 invoked by uid 22791); 23 Jun 2010 10:36:18 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jun 2010 10:36:14 +0000 Received: (qmail 32103 invoked from network); 23 Jun 2010 10:36:12 -0000 Received: from unknown (HELO ?192.168.44.101?) (nathan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 23 Jun 2010 10:36:12 -0000 Message-ID: <4C21E361.1040900@codesourcery.com> Date: Wed, 23 Jun 2010 11:38:00 -0000 From: Nathan Sidwell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Mark Mitchell CC: Michael Matz , Richard Guenther , GCC Patches Subject: Re: [gimple] assignments to volatile References: <4C1F5380.1090107@codesourcery.com> <4C20D40B.30904@codesourcery.com> <4C20D891.5030506@codesourcery.com> In-Reply-To: <4C20D891.5030506@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-06/txt/msg02311.txt.bz2 On 06/22/10 16:36, Mark Mitchell wrote: > Nathan, I know that we have RealView available for testing, and I > believe we also have CodeWarrior installed. Would you like to give > those two a try? I couldn't get CodeWarrior to play. RVCT generated code consistent with my proposal. Specifically in: some_use_of = volatile_object = value; the volatile object is only written to and not read, regardless of the context of that volatile assignment (be it return expression, conditional expression or serial assignment). > vobj; > (void) vobj; Both of these cause a read of vobj in RVCT (and GCC). nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery