diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 20:31:59 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 20:31:59 +0000 |
commit | 365d1e72e5457571dcbbc8fb7074bb0fb16ddb98 (patch) | |
tree | c574029799249f3473224a97bcc7fabde9611103 /libstdc++-v3/config/os | |
parent | 83ae3cdf31714f761d29da9f4f9fd2fbff1c8d4e (diff) | |
download | gcc-365d1e72e5457571dcbbc8fb7074bb0fb16ddb98.tar.gz |
* config/os/irix/bits/atomicity.h (_Atomic_word): Make it a
signed type.
(__exchange_aand_add): Adjust accordingly.
(__atomic_add): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37209 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config/os')
-rw-r--r-- | libstdc++-v3/config/os/irix/bits/atomicity.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libstdc++-v3/config/os/irix/bits/atomicity.h b/libstdc++-v3/config/os/irix/bits/atomicity.h index 7f224154582..12dd285b238 100644 --- a/libstdc++-v3/config/os/irix/bits/atomicity.h +++ b/libstdc++-v3/config/os/irix/bits/atomicity.h @@ -22,21 +22,19 @@ #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 */ |