Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70452 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2011-03-22 20:29:24


Author: pdimov
Date: 2011-03-22 20:29:22 EDT (Tue, 22 Mar 2011)
New Revision: 70452
URL: http://svn.boost.org/trac/boost/changeset/70452

Log:
Apply suggested patch. Refs #5327.
Text files modified:
   trunk/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp (original)
+++ trunk/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp 2011-03-22 20:29:22 EDT (Tue, 22 Mar 2011)
@@ -37,9 +37,12 @@
     __asm__ __volatile__
     (
         "0:\n\t"
+ ".set push\n\t"
+ ".set mips2\n\t"
         "ll %0, %1\n\t"
         "addiu %0, 1\n\t"
         "sc %0, %1\n\t"
+ ".set pop\n\t"
         "beqz %0, 0b":
         "=&r"( tmp ), "=m"( *pw ):
         "m"( *pw )
@@ -55,9 +58,12 @@
     __asm__ __volatile__
     (
         "0:\n\t"
+ ".set push\n\t"
+ ".set mips2\n\t"
         "ll %1, %2\n\t"
         "addiu %0, %1, -1\n\t"
         "sc %0, %2\n\t"
+ ".set pop\n\t"
         "beqz %0, 0b\n\t"
         "addiu %0, %1, -1":
         "=&r"( rv ), "=&r"( tmp ), "=m"( *pw ):
@@ -78,10 +84,13 @@
     __asm__ __volatile__
     (
         "0:\n\t"
+ ".set push\n\t"
+ ".set mips2\n\t"
         "ll %0, %2\n\t"
         "beqz %0, 1f\n\t"
         "addiu %1, %0, 1\n\t"
         "sc %1, %2\n\t"
+ ".set pop\n\t"
         "beqz %1, 0b\n\t"
         "addiu %0, %0, 1\n\t"
         "1:":


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk