From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26138 invoked by alias); 16 Apr 2003 18:16:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26116 invoked by uid 71); 16 Apr 2003 18:16:00 -0000 Date: Wed, 16 Apr 2003 18:16:00 -0000 Message-ID: <20030416181600.26115.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Berger David-MGI2063 Subject: RE: optimization/10423: -fvolatile switch not working in gcc 3.2- 3 when using -O2 Reply-To: Berger David-MGI2063 X-SW-Source: 2003-04/txt/msg00768.txt.bz2 List-Id: The following reply was made to PR optimization/10423; it has been noted by GNATS. From: Berger David-MGI2063 To: "'Zack Weinberg'" Cc: "'gcc-gnats@gcc.gnu.org'" , "'gcc-bugs@gcc.gnu.org'" Subject: RE: optimization/10423: -fvolatile switch not working in gcc 3.2- 3 when using -O2 Date: Wed, 16 Apr 2003 11:06:25 -0700 Why are they being removed ?!? Are you just going to break all the legacy programs out there? -----Original Message----- From: Zack Weinberg [mailto:zack@codesourcery.com] Sent: Wednesday, April 16, 2003 11:03 AM To: David Berger Cc: gcc-gnats@gcc.gnu.org; gcc-bugs@gcc.gnu.org Subject: Re: optimization/10423: -fvolatile switch not working in gcc 3.2-3 when using -O2 dberger@motorola.com writes: > Compile with following using "gcc -O2 -fvolatile -S": > > void test(void) > { > *(char *)0x100 = 1; > *(char *)0x100 = 1; > *(char *)0x100 = 1; > *(char *)0x100 = 1; > } Allow me to refer you to the release notes for gcc 3.4 (that will be): GCC no longer accepts the options -fvolatile, -fvolatile-global and -fvolatile-static. It is unlikely that they worked correctly in any 3.x release. Note in particular the last sentence. You've just confirmed that it doesn't work. (to the list:) How about we remove these options from 3.2.3 and 3.3 as well? It does not help anyone for them to be present but nonfunctional. zw