optimization/10423: -fvolatile switch not working in gcc 3.2- 3 when using -O2

Berger David-MGI2063 dberger@motorola.com
Wed Apr 16 18:06:00 GMT 2003


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



More information about the Gcc-bugs mailing list