diff options
author | linimon <linimon@FreeBSD.org> | 2009-12-04 16:39:55 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2009-12-04 16:39:55 +0800 |
commit | ca46d4e313495d069b2acbbebefa6d56a21305a6 (patch) | |
tree | dcd91577c69dda2f654edc2333eddcbdc16658d1 /devel/boost-libs | |
parent | 5f918e7f78d76f5e07aaac1c9e2661c37539b9db (diff) | |
download | freebsd-ports-gnome-ca46d4e313495d069b2acbbebefa6d56a21305a6.tar.gz freebsd-ports-gnome-ca46d4e313495d069b2acbbebefa6d56a21305a6.tar.zst freebsd-ports-gnome-ca46d4e313495d069b2acbbebefa6d56a21305a6.zip |
Fix build on sparc64. No need to bump portrevision.
Tested on: i386, sparc64
Submitted by: maintainer
Diffstat (limited to 'devel/boost-libs')
-rw-r--r-- | devel/boost-libs/files/patch-boost_smart_ptr_detail_sp_counted_base_gcc_sparc.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/boost-libs/files/patch-boost_smart_ptr_detail_sp_counted_base_gcc_sparc.hpp b/devel/boost-libs/files/patch-boost_smart_ptr_detail_sp_counted_base_gcc_sparc.hpp new file mode 100644 index 000000000000..0df80666e2b5 --- /dev/null +++ b/devel/boost-libs/files/patch-boost_smart_ptr_detail_sp_counted_base_gcc_sparc.hpp @@ -0,0 +1,15 @@ +--- boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp.orig 2009-11-26 07:22:29.000000000 -0500 ++++ boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp 2009-11-26 07:24:36.000000000 -0500 +@@ -30,9 +30,9 @@ + + inline int32_t compare_and_swap( int32_t * dest_, int32_t compare_, int32_t swap_ ) + { +- __asm__ __volatile__( "cas %0, %2, %1" +- : "+m" (*dest_), "+r" (swap_) +- : "r" (compare_) ++ __asm__ __volatile__( "cas [%1], %2, %0" ++ : "+r" (swap_) ++ : "r" (dest_), "r" (compare_) + : "memory" ); + + return swap_; |