From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32036 invoked by alias); 21 Feb 2014 09:54:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 31981 invoked by uid 89); 21 Feb 2014 09:54:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 21 Feb 2014 09:54:37 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WGmoS-0005Jt-Am for gcc-help@gcc.gnu.org; Fri, 21 Feb 2014 10:54:32 +0100 Received: from 79.161.10.130 ([79.161.10.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Feb 2014 10:54:32 +0100 Received: from david by 79.161.10.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Feb 2014 10:54:32 +0100 To: gcc-help@gcc.gnu.org From: David Brown Subject: Re: Compiler optimizing variables in inline assembly Date: Fri, 21 Feb 2014 09:54:00 -0000 Message-ID: References: <5305C77D.3090807@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00133.txt.bz2 On 20/02/14 20:29, Cody Rigney wrote: > That makes sense. In this case, the input parameters are actually > memory addresses. So how would I do an output or clobber that would > tell the compiler that the memory at those addresses will change? > Easy - you specify "memory" in your clobber list! > Thanks for your time, > > Cody >