This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Speed up single-threaded case of atomic ops and reduce text size
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: Richard Guenther <rguenther at suse dot de>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Aug 2006 14:51:51 +0200
- Subject: Re: [PATCH] Speed up single-threaded case of atomic ops and reduce text size
- References: <Pine.LNX.4.64.0608161423160.4573@nyjnma.fhfr.qr> <44E311E1.5000605@suse.de>
Paolo Carlini wrote:
I'm guilty of having rushed Richard to post this patch (sorry!),
which, in general, I like indeed. However, it has to wait a bit for us
(v3 maintainers) to carefully weigh the delicate points raised in the
discussion thread with Hans about volatile & single-thread &
signals... Thanks for the patience, Richard.
... by the way, the patch, as-is, triggers a warning:
/home/paolo/Gcc/svn-dirs/trunk-build/i686-pc-linux-gnu/libstdc++-v3/include/bits/atomicity.h:
In function '_Atomic_word __gnu_cxx::__exchange_and_add_single(volatile
_Atomic_word*, int)':
/home/paolo/Gcc/svn-dirs/trunk-build/i686-pc-linux-gnu/libstdc++-v3/include/bits/atomicity.h:65:
warning: cast from type 'volatile _Atomic_word*' to type '_Atomic_word*'
casts away constness
/home/paolo/Gcc/svn-dirs/trunk-build/i686-pc-linux-gnu/libstdc++-v3/include/bits/atomicity.h:
In function 'void __gnu_cxx::__atomic_add_single(volatile _Atomic_word*,
int)':
/home/paolo/Gcc/svn-dirs/trunk-build/i686-pc-linux-gnu/libstdc++-v3/include/bits/atomicity.h:73:
warning: cast from type 'volatile _Atomic_word*' to type '_Atomic_word*'
casts away constness
Paolo.