This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: volatile qualifier
- To: "Rob Taylor" <robt at flyingpig dot com>
- Subject: Re: volatile qualifier
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Wed, 15 Aug 2001 20:04:29 +1000
- Cc: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- References: <00d001c12567$9c873390$7a00a8c0@eventhorizon>
On 15-Aug-2001, Rob Taylor <robt@flyingpig.com> wrote:
> I notice that in ISO C++, volatile is treated like const,
>
> so my question is:
> If i declare an inline member function volatile, does this mean that that
> function will always be generated as caution about optimisation, or will it only
> be generated as cautious about optimisation if the object is volatile?
The former.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.