From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26356 invoked by alias); 3 May 2005 21:19:24 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 26325 invoked from network); 3 May 2005 21:19:18 -0000 Received: from unknown (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 3 May 2005 21:19:18 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DT4gM-0007vC-Ej for gcc@gcc.gnu.org; Tue, 03 May 2005 23:11:54 +0200 Received: from xdsl-81-173-172-63.netcologne.de ([81.173.172.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2005 23:11:54 +0200 Received: from tg by xdsl-81-173-172-63.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2005 23:11:54 +0200 To: gcc@gcc.gnu.org From: Thorsten Glaser Subject: Re: volatile semantics Date: Tue, 03 May 2005 21:19:00 -0000 Message-ID: References: <851D2CB0-93DF-4C49-A6A8-8895DB1A08F9@apple.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <851D2CB0-93DF-4C49-A6A8-8895DB1A08F9@apple.com> X-SW-Source: 2005-05/txt/msg00112.txt.bz2 Mike Stump dixit: > int avail; > int main() { > while (*(volatile int *)&avail == 0) > continue; > return 0; > } 3.4.4 fetches too. I get: .L2: mov %eax, DWORD PTR avail test %eax, %eax je .L2 This is at -O99, other levels produce similar results. //mirabile -- > Hi, does anyone sell openbsd stickers by themselves and not packaged > with other products? No, the only way I've seen them sold is for $40 with a free OpenBSD CD. -- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc