From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15647 invoked by alias); 16 Jul 2005 16:35:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15614 invoked by alias); 16 Jul 2005 16:35:50 -0000 Date: Sat, 16 Jul 2005 17:53:00 -0000 Message-ID: <20050716163550.15613.qmail@sourceware.org> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050702164323.22278.olivier.baudron@m4x.org> References: <20050702164323.22278.olivier.baudron@m4x.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/22278] gcc -O2 discards cast to volatile X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02024.txt.bz2 List-Id: ------- Additional Comments From gdr at integrable-solutions dot net 2005-07-16 16:35 ------- Subject: Re: gcc -O2 discards cast to volatile "hugh at mimosa dot com" writes: [...] | If GCC (a) wants to be C99-conforming, and (b) wants to provide useful | semantics for `volatile', this is a bug. Based on discussions via private mails, I've become even more convinced that we should just honor the volatile access as written by the programmer. Furthermore, this should be clearly documented. Patches are welcome! -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278