mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 00:00:15 +08:00
atomicity.h (__exchange_and_add): Change unused to __unused__.
2000-09-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * config/cpu/i386/bits/atomicity.h (__exchange_and_add): Change unused to __unused__. * config/cpu/ia64/bits/atomicity.h (__exchange_and_add): And here. * config/cpu/i486/bits/atomicity.h (__exchange_and_add): And here. From-SVN: r36255
This commit is contained in:
parent
6db8315512
commit
f1158db342
@ -1,3 +1,10 @@
|
||||
2000-09-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
|
||||
|
||||
* config/cpu/i386/bits/atomicity.h (__exchange_and_add): Change unused
|
||||
to __unused__.
|
||||
* config/cpu/ia64/bits/atomicity.h (__exchange_and_add): And here.
|
||||
* config/cpu/i486/bits/atomicity.h (__exchange_and_add): And here.
|
||||
|
||||
2000-09-07 Phil Edwards <pme@sources.redhat.com>
|
||||
|
||||
Add bits for --enable-maintainer-mode:
|
||||
|
@ -23,7 +23,7 @@
|
||||
typedef int _Atomic_word;
|
||||
|
||||
static inline _Atomic_word
|
||||
__attribute__ ((unused))
|
||||
__attribute__ ((__unused__))
|
||||
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
||||
{
|
||||
register _Atomic_word __result;
|
||||
@ -43,3 +43,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
|
||||
}
|
||||
|
||||
#endif /* atomicity.h */
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
typedef int _Atomic_word;
|
||||
|
||||
static inline _Atomic_word
|
||||
__attribute__ ((unused))
|
||||
__attribute__ ((__unused__))
|
||||
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
||||
{
|
||||
register _Atomic_word __result;
|
||||
@ -56,3 +56,5 @@ __compare_and_swap (volatile long* __p, long __oldval, long __newval)
|
||||
}
|
||||
|
||||
#endif /* atomicity.h */
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
typedef int _Atomic_word;
|
||||
|
||||
static inline _Atomic_word
|
||||
__attribute__ ((unused))
|
||||
__attribute__ ((__unused__))
|
||||
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
||||
{
|
||||
return __sync_fetch_and_add (__mem, __val);
|
||||
|
Loading…
Reference in New Issue
Block a user