
Peter Dimov wrote:
For GCC 4.1 and above, we need to switch atomic_count and sp_counted_base to
http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html
If someone can submit a patch for that I'll incorporate it, otherwise it will happen whenever I find the time to implement and test it myself.
That's more than I have time for, but the attached patch at least gets detail/atomic_count.hpp compiling again on gcc-4.3. OK to commit? -- Eric Niebler Boost Consulting www.boost-consulting.com Index: atomic_count_gcc.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/detail/atomic_count_gcc.hpp,v retrieving revision 1.5 diff -b -d -u -r1.5 atomic_count_gcc.hpp --- atomic_count_gcc.hpp 2 Apr 2005 11:37:53 -0000 1.5 +++ atomic_count_gcc.hpp 28 Apr 2007 01:33:27 -0000 @@ -17,7 +17,11 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include <bits/atomicity.h> +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) +# include <ext/atomicity.h> +#else +# include <bits/atomicity.h> +#endif namespace boost {