From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 63143B70A7 for ; Tue, 30 Jun 2009 01:57:34 +1000 (EST) Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by ozlabs.org (Postfix) with ESMTP id DCF54DDD0B for ; Tue, 30 Jun 2009 01:57:33 +1000 (EST) From: David Howells In-Reply-To: References: To: kernel mailz Subject: Re: Inline Assembly queries Date: Mon, 29 Jun 2009 16:57:16 +0100 Message-ID: <30098.1246291036@redhat.com> Sender: dhowells@redhat.com Cc: gcc-help@gcc.gnu.org, linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , kernel mailz wrote: > asm("sync"); Isn't gcc free to discard this as it has no dependencies, no indicated side effects, and isn't required to be kept? I think this should probably be: asm volatile("sync"); David