This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] | |
Maybe something like the attached patch.
* include/ext/atomicity.h (__exchange_and_add): Use
__atomic_fetch_add with ACQUIRE memory model.
(__exchange_and_sub): New function.
(__atomic_add): Use __atomic_fetch_add with ACQUIRE memory model.
(__exchange_and_sub_single): New function.
(__exchange_and_sub_dispatch): New function.
* include/bits/locale_classes.h (_M_remove_reference): Use
__exchange_and_sub_dispatch.
* include/bits/basic_string.h (_M_dispose): Use
__exchange_and_sub_dispatch.
* include/bits/ios_base.h (_M_remove_reference): Use
__exchange_and_sub_dispatch.
* include/bits/shared_ptr_base.h (_M_release): Use
__exchange_and_sub_dispatch.
(_M_weak_release): Same.
- David
Attachment:
1.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |