From 9b92ea28f02d709230e5d63a6d96edc7ace251b1 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Tue, 21 Jun 2022 21:09:01 -0500 Subject: [PATCH] Use the supported compiler intrinsic __sync(); instead of msync asm --- include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp b/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp index 58a69e6..1d58fbe 100644 --- a/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +++ b/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp @@ -60,14 +60,10 @@ inline long atomic_decrement( register long * pw ) { register int a; + __sync(); + asm { -#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__) - msync -#else - sync -#endif - loop: lwarx a, 0, pw