atomicity.h: Change __attribute__ ((unused)) to __attribute__ ((__unused__)).

2000-08-22  Richard B. Kreckel  <Richard.Kreckel@Uni-Mainz.DE>

	* config/cpu/alpha/bits/atomicity.h: Change __attribute__
	((unused)) to __attribute__ ((__unused__)).
	* config/cpu/arm/bits/atomicity.h: Same.
	* config/cpu/generic/bits/atomicity.h: Same.
	* config/cpu/i386/bits/atomicity.h: Same.
	* config/cpu/i486/bits/atomicity.h: Same.
	* config/cpu/powerpc/bits/atomicity.h: Same.
	* config/cpu/sparc/sparc32/bits/atomicity.h: Same.
	* config/cpu/sparc/sparc64/bits/atomicity.h: Same.

From-SVN: r35882
This commit is contained in:
Benjamin Kosnik 2000-08-22 18:24:16 +00:00
parent d29de343fe
commit 7e0ec38b14
9 changed files with 38 additions and 26 deletions

View File

@ -1,4 +1,16 @@
2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>
2000-08-22 Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE>
* config/cpu/alpha/bits/atomicity.h: Change __attribute__
((unused)) to __attribute__ ((__unused__)).
* config/cpu/arm/bits/atomicity.h: Same.
* config/cpu/generic/bits/atomicity.h: Same.
* config/cpu/i386/bits/atomicity.h: Same.
* config/cpu/i486/bits/atomicity.h: Same.
* config/cpu/powerpc/bits/atomicity.h: Same.
* config/cpu/sparc/sparc32/bits/atomicity.h: Same.
* config/cpu/sparc/sparc64/bits/atomicity.h: Same.
2000-08-22 Levente Farkas <lfarkas@mindmaker.hu>
* bits/basic_string.h: Fix up parameter names.

View File

@ -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 int __result, __tmp;
@ -48,7 +48,7 @@ __exchange_and_add (volatile _Atomic_word* __mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
register _Atomic_word __result;
@ -71,7 +71,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
}
static inline int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long *__p, long __oldval, long __newval)
{
int __ret;

View File

@ -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)
{
_Atomic_word __tmp, __tmp2, __result;
@ -41,7 +41,7 @@ __exchange_and_add (volatile _Atomic_word* __mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word *__mem, int __val)
{
_Atomic_word __tmp, __tmp2, __tmp3;
@ -58,7 +58,7 @@ __atomic_add (volatile _Atomic_word *__mem, int __val)
}
static inline int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long *__p, long __oldval, long __newval)
{
int __result;
@ -81,7 +81,7 @@ __compare_and_swap (volatile long *__p, long __oldval, long __newval)
}
static inline long
__attribute__ ((unused))
__attribute__ ((__unused__))
__always_swap (volatile long *__p, long __newval)
{
long __result;
@ -92,7 +92,7 @@ __always_swap (volatile long *__p, long __newval)
}
static inline int
__attribute__ ((unused))
__attribute__ ((__unused__))
__test_and_set (volatile long *__p, long __newval)
{
int __result;

View File

@ -23,7 +23,7 @@
typedef int _Atomic_word;
static inline _Atomic_word
__attribute__ ((unused))
__attribute__ ((__unused__))
__exchange_and_add (_Atomic_word* __mem, int __val)
{
_Atomic_word __result = *__mem;
@ -32,14 +32,14 @@ __exchange_and_add (_Atomic_word* __mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (_Atomic_word* __mem, int __val)
{
*__mem += __val;
}
static inline int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (long *__p, long __oldval, long __newval)
{
if (*__p != __oldval)

View File

@ -35,7 +35,7 @@ __exchange_and_add (volatile _Atomic_word *__mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
__asm__ __volatile__ ("lock; addl %0,%1"

View File

@ -35,7 +35,7 @@ __exchange_and_add (volatile _Atomic_word *__mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
__asm__ __volatile__ ("lock; addl %0,%1"
@ -43,7 +43,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
}
static inline char
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long* __p, long __oldval, long __newval)
{
char __ret;

View File

@ -29,7 +29,7 @@ typedef int _Atomic_word;
#endif
static __ATOMICITY_INLINE _Atomic_word
__attribute__ ((unused))
__attribute__ ((__unused__))
__exchange_and_add (volatile _Atomic_word* __mem, int __val)
{
_Atomic_word __tmp, __res;
@ -43,7 +43,7 @@ __exchange_and_add (volatile _Atomic_word* __mem, int __val)
}
static __ATOMICITY_INLINE void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word *__mem, int __val)
{
_Atomic_word __tmp;
@ -56,7 +56,7 @@ __atomic_add (volatile _Atomic_word *__mem, int __val)
}
static __ATOMICITY_INLINE int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long *__p, long int __oldval, long int __newval)
{
int __res;
@ -73,7 +73,7 @@ __compare_and_swap (volatile long *__p, long int __oldval, long int __newval)
}
static __ATOMICITY_INLINE long
__attribute__ ((unused))
__attribute__ ((__unused__))
__always_swap (volatile long *__p, long int __newval)
{
long __res;
@ -86,7 +86,7 @@ __always_swap (volatile long *__p, long int __newval)
}
static __ATOMICITY_INLINE int
__attribute__ ((unused))
__attribute__ ((__unused__))
__test_and_set (volatile long *__p, long int __newval)
{
int __res;

View File

@ -23,7 +23,7 @@
typedef int _Atomic_word;
static int
__attribute__ ((unused))
__attribute__ ((__unused__))
__exchange_and_add (volatile _Atomic_word* __mem, int __val)
{
static unsigned char __lock;
@ -46,7 +46,7 @@ __exchange_and_add (volatile _Atomic_word* __mem, int __val)
}
static void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
static unsigned char __lock;
@ -67,7 +67,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
}
static int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long *__p, long __oldval, long __newval)
{
static unsigned char __lock;

View File

@ -23,7 +23,7 @@
typedef long _Atomic_word;
static inline _Atomic_word
__attribute__ ((unused))
__attribute__ ((__unused__))
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
{
_Atomic_word __tmp1, __tmp2;
@ -41,7 +41,7 @@ __exchange_and_add (volatile _Atomic_word *__mem, int __val)
}
static inline void
__attribute__ ((unused))
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
_Atomic_word __tmp1, __tmp2;
@ -58,7 +58,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
}
static inline int
__attribute__ ((unused))
__attribute__ ((__unused__))
__compare_and_swap (volatile long *__p, long __oldval, long __newval)
{
register int __tmp,