From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10676 invoked by alias); 27 Feb 2014 13:18:15 -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 10660 invoked by uid 89); 27 Feb 2014 13:18:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f180.google.com Received: from mail-pd0-f180.google.com (HELO mail-pd0-f180.google.com) (209.85.192.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 27 Feb 2014 13:18:13 +0000 Received: by mail-pd0-f180.google.com with SMTP id y10so2417307pdj.25 for ; Thu, 27 Feb 2014 05:18:11 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.66.232.68 with SMTP id tm4mr15005196pac.114.1393507091643; Thu, 27 Feb 2014 05:18:11 -0800 (PST) Received: by 10.70.103.36 with HTTP; Thu, 27 Feb 2014 05:18:11 -0800 (PST) In-Reply-To: References: <5305C77D.3090807@redhat.com> <5307221E.8070409@redhat.com> <53076A99.1020709@redhat.com> Date: Thu, 27 Feb 2014 13:18:00 -0000 Message-ID: Subject: Re: Compiler optimizing variables in inline assembly From: Cody Rigney To: Andrew Haley Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-02/txt/msg00157.txt.bz2 > On Fri, Feb 21, 2014 at 10:02 AM, Andrew Haley wrote: >> It's hard for me to give a 100% answer to that one, but GCC has an >> idea what memory is reachable from every pointer. So, this won't >> clobber memory that's unreachable or has a different type from that >> pointer. It probably doesn't matter. >> Doing "=m" (*a) in the output operand worked! And so did "memory" to the clobber list. Thanks!