This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does the keyword volatile work?
Fergus Henderson <fjh@cs.mu.OZ.AU> writes:
> On 13-May-2003, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> > Fergus Henderson <fjh@cs.mu.OZ.AU> writes:
> >
> > | The wording in the standard prohibits optimizing away accesses to volatile
> > | *objects*, but doesn't say anything about volatile rvalues.
> >
> > C has no notion of rvalue.
>
> By "rvalue", I mean any expression which is not an lvalue.
The C standard leaves this (the notion of 'access')
implementation-defined. It's a bug in GCC that it doesn't define it
(and the space is right there in the documentation for it).
--
- Geoffrey Keating <geoffk@geoffk.org>