This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how do the -fvolatile- switches work?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Marcus Binny <marcusbinny at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 08 Oct 2003 22:02:42 -0700
- Subject: Re: how do the -fvolatile- switches work?
- References: <20031009043430.68104.qmail@web60201.mail.yahoo.com>
Marcus Binny <marcusbinny@yahoo.com> writes:
> I could not figure out how does the -fvolatile or
> -fvolatile-global switches work?
They don't. They have been broken since GCC 3.0 and will be removed
entirely in GCC 3.4.
> I wanted -O2 to load globals from memory only. Is that possible from
> command line? without declaring globals volatile.
No.
zw