This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: volatile [was: GCC warnings for unused global variables]
On May 7, 2003, Michael Eager <eager@eagercon.com> wrote:
> If you take the view that "a <op>= b" involves a read and a write, then
> translating it into load/operate/store is correct.
But then, so is a single instruction that loads, operates then stores,
right? The thing is that GCC doesn't ever give such instruction a
chance if the variable is volatile.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer