gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] Speed up single-threaded case of atomic ops and reduce tex

Subject: Re: [PATCH] Speed up single-threaded case of atomic ops and reduce text size
From: Paolo Carlini
Date: Wed, 16 Aug 2006 14:51:51 +0200
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.

<Prev in Thread] Current Thread [Next in Thread>