Does the keyword volatile work?

Geoff Keating geoffk@geoffk.org
Tue May 13 18:41:00 GMT 2003


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>



More information about the Gcc mailing list