how do the -fvolatile- switches work?

Zack Weinberg zack@codesourcery.com
Thu Oct 9 05:02:00 GMT 2003


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



More information about the Gcc mailing list