This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: volatile qualifier hurts single-threaded optimized case
Richard Guenther wrote:
They can be still used by putting appropriate const_cast<> on the rope
side. If
in the threaded case we dispatch to the threaded variants, volatile
will be in effect again.
This is becoming slightly off-topic, but I'm interested to understand
this detail better, I think there is also something about it in that
long thread but there were different opinions. Therefore, you are saying
that, in gcc at least, using plain pointers together with volatile
memory is ok? I seemed to remember that, in some cases, in gcc, the type
of the pointer counts "more" than the type of the memory, so to speak.
Paolo.