[Bug libstdc++/24704] __gnu_cxx::__exchange_and_add is called even for single threaded applications
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 24 16:38:00 GMT 2006
------- Comment #25 from paolo at gcc dot gnu dot org 2006-05-24 16:37 -------
Subject: Bug 24704
Author: paolo
Date: Wed May 24 16:37:42 2006
New Revision: 114044
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114044
Log:
2006-05-24 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/24704
* include/bits/atomicity.h (__exchange_and_add_single,
__atomic_add_single): New, single thread versions of the atomic
functions.
(__exchange_and_add_dispatch, __atomic_add_dispatch): New,
depending on __GTHREADS and __gthread_active_p() dispatch either
to the above or to the existing atomic functions.
* include/ext/pool_allocator.h: Update callers.
* include/ext/rc_string_base.h: Likewise.
* include/bits/locale_classes.h: Likewise.
* include/bits/basic_string.h: Likewise.
* include/bits/ios_base.h: Likewise.
* include/tr1/boost_shared_ptr.h: Likewise.
* src/ios.cc: Likewise.
* src/locale.cc: Likewise.
* src/ios_init.cc: Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/atomicity.h
trunk/libstdc++-v3/include/bits/basic_string.h
trunk/libstdc++-v3/include/bits/ios_base.h
trunk/libstdc++-v3/include/bits/locale_classes.h
trunk/libstdc++-v3/include/ext/pool_allocator.h
trunk/libstdc++-v3/include/ext/rc_string_base.h
trunk/libstdc++-v3/include/tr1/boost_shared_ptr.h
trunk/libstdc++-v3/src/ios.cc
trunk/libstdc++-v3/src/ios_init.cc
trunk/libstdc++-v3/src/locale.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24704
More information about the Gcc-bugs
mailing list