This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC] Remove volatile from data members in libstdc++


On Mon, 10 Jul 2006, Paolo Carlini wrote:

> Hi Richard,
> 
> >This patch removes volatile qualifiers from data members in allocator
> >classes of libstdc++ and rope.  As mentioned in previous discussion,
> >their use is wrong.
> >
> honestly I don't remember the details of that discussion and, well, in general
> there aren't so many stupid things in the original HP/SGI code (rope,
> pool_allocator). Maybe it's because of the slightly different semantics of
> volatile in GCC and in the original SGI compiler?!?

Searching I only found 
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01008.html
and the followup
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01002.html

Of course the only semantics that matter are those specified in the
standard, and those are not useful in the context of locking or
serialization.

Thanks,
Richard.

--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]