mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 16:29:40 +08:00
atomicity.h (_Atomic_word): Make it a signed type.
* config/os/irix/bits/atomicity.h (_Atomic_word): Make it a signed type. (__exchange_aand_add): Adjust accordingly. (__atomic_add): Likewise. From-SVN: r37209
This commit is contained in:
parent
04e3be98eb
commit
7d3b1e8d0e
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user