This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how do the -fvolatile- switches work?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]