atomicity.h (_Atomic_word): Make it a signed type.
authorMark Mitchell <mark@codesourcery.com>
Thu, 2 Nov 2000 20:31:59 +0000 (20:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 2 Nov 2000 20:31:59 +0000 (20:31 +0000)
* config/os/irix/bits/atomicity.h (_Atomic_word): Make it a
signed type.
(__exchange_aand_add): Adjust accordingly.
(__atomic_add): Likewise.

From-SVN: r37209

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/irix/bits/atomicity.h

index 56ef6ccad894b7916ff7616b34196e7c1e1e2a8e..529c33625e0873febffd86300aa40a5fedf48876 100644 (file)
@@ -1,3 +1,10 @@
+Thu Nov  2 10:11:45 2000  Mark P Mitchell  <mark@codesourcery.com>
+
+       * config/os/irix/bits/atomicity.h (_Atomic_word): Make it a
+       signed type.
+       (__exchange_aand_add): Adjust accordingly.
+       (__atomic_add): Likewise.
+       
 2000-11-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
 
        * src/locale.cc: Match orderings for static members.
index 7f224154582eaa35caeb40384a3532fc3c911871..12dd285b238ff3b3bc63e00cad3e607daa9c10bd 100644 (file)
 
 #include <mutex.h>
 
-typedef unsigned long _Atomic_word;
+typedef long _Atomic_word;
 
 static inline _Atomic_word
-__attribute__ ((__unused__))
 __exchange_and_add (_Atomic_word* __mem, int __val)
 {
-  return test_then_add (__mem, __val);
+  return (_Atomic_word) test_then_add ((unsigned long*) __mem, __val);
 }
 
 
 static inline void
-__attribute__ ((unused))
 __atomic_add (_Atomic_word* __mem, int __val)
 {
-  test_then_add (__mem, __val);
+  __exchange_and_add (__mem, __val);
 }
 
 #endif /* atomicity.h */