diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-20 06:33:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-20 06:33:11 +0000 |
commit | fbfde146ca8e9e2c830bbd659027a6ca69aa8c33 (patch) | |
tree | c330cdd430849f6ed133ec1856f60f5d076a916f /libc | |
parent | 44ea58d5387b030e80ca1a5c1ea8bbd8bfc0cd54 (diff) |
Cope with gcc 3.4's more aggressive persuit of attribute unused
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/rpc/clnt_perror.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/alpha/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/bits/mathinline.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/m68k/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/atomicity.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/bits/atomicity.h | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/bits/machine-gmon.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/bits/atomicity.h | 6 |
11 files changed, 29 insertions, 29 deletions
diff --git a/libc/inet/rpc/clnt_perror.c b/libc/inet/rpc/clnt_perror.c index c4b8ee5f6..1c9ca88ae 100644 --- a/libc/inet/rpc/clnt_perror.c +++ b/libc/inet/rpc/clnt_perror.c @@ -425,7 +425,7 @@ auth_errmsg (enum auth_stat stat) } -static void __attribute__ ((unused)) +static void __attribute_used__ free_mem (void) { free (buf); diff --git a/libc/sysdeps/linux/alpha/bits/atomicity.h b/libc/sysdeps/linux/alpha/bits/atomicity.h index 9388f2384..df6e01a1e 100644 --- a/libc/sysdeps/linux/alpha/bits/atomicity.h +++ b/libc/sysdeps/linux/alpha/bits/atomicity.h @@ -24,7 +24,7 @@ static inline int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { register int result, tmp; @@ -49,7 +49,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { register int result; @@ -72,7 +72,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline long -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { long int ret; diff --git a/libc/sysdeps/linux/arm/bits/atomicity.h b/libc/sysdeps/linux/arm/bits/atomicity.h index 1a437a6d3..def974f8a 100644 --- a/libc/sysdeps/linux/arm/bits/atomicity.h +++ b/libc/sysdeps/linux/arm/bits/atomicity.h @@ -24,7 +24,7 @@ static inline int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { int tmp1; @@ -44,7 +44,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { int tmp1; @@ -63,7 +63,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { int result, tmp; diff --git a/libc/sysdeps/linux/common/bits/atomicity.h b/libc/sysdeps/linux/common/bits/atomicity.h index 1a756498b..57bcaad5d 100644 --- a/libc/sysdeps/linux/common/bits/atomicity.h +++ b/libc/sysdeps/linux/common/bits/atomicity.h @@ -25,7 +25,7 @@ #warning stub atomicity functions are not really atomic static inline int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { int result = *mem; @@ -34,14 +34,14 @@ exchange_and_add (volatile uint32_t *mem, int val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { *mem += val; } static inline int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { if (*p != oldval) diff --git a/libc/sysdeps/linux/i386/bits/atomicity.h b/libc/sysdeps/linux/i386/bits/atomicity.h index df2fb8184..d83ae791e 100644 --- a/libc/sysdeps/linux/i386/bits/atomicity.h +++ b/libc/sysdeps/linux/i386/bits/atomicity.h @@ -24,7 +24,7 @@ static inline uint32_t -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, uint32_t val) { register uint32_t result; @@ -34,7 +34,7 @@ exchange_and_add (volatile uint32_t *mem, uint32_t val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { __asm__ __volatile__ ("lock; addl %1,%0" @@ -42,7 +42,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline char -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { char ret; diff --git a/libc/sysdeps/linux/i386/bits/mathinline.h b/libc/sysdeps/linux/i386/bits/mathinline.h index 0464003b7..d39a122ca 100644 --- a/libc/sysdeps/linux/i386/bits/mathinline.h +++ b/libc/sysdeps/linux/i386/bits/mathinline.h @@ -408,7 +408,7 @@ __inline_mathcodeNP_ (long double, __expl, __x, __exp_code) __inline_mathcodeNP (tan, __x, \ register long double __value; \ - register long double __value2 __attribute__ ((__unused__)); \ + register long double __value2 __attribute_used__; \ __asm __volatile__ \ ("fptan" \ : "=t" (__value2), "=u" (__value) : "0" (__x)); \ diff --git a/libc/sysdeps/linux/m68k/bits/atomicity.h b/libc/sysdeps/linux/m68k/bits/atomicity.h index 464948086..db1c9bfae 100644 --- a/libc/sysdeps/linux/m68k/bits/atomicity.h +++ b/libc/sysdeps/linux/m68k/bits/atomicity.h @@ -25,7 +25,7 @@ static inline int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { register int result = *mem; @@ -40,7 +40,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { /* XXX Use cas here as well? */ @@ -49,7 +49,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { char ret; diff --git a/libc/sysdeps/linux/mips/bits/atomicity.h b/libc/sysdeps/linux/mips/bits/atomicity.h index bccacd9c9..5d1020352 100644 --- a/libc/sysdeps/linux/mips/bits/atomicity.h +++ b/libc/sysdeps/linux/mips/bits/atomicity.h @@ -23,7 +23,7 @@ #include <inttypes.h> static inline int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { int result, tmp; @@ -47,7 +47,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { int result; @@ -69,7 +69,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { long int ret, temp; diff --git a/libc/sysdeps/linux/powerpc/bits/atomicity.h b/libc/sysdeps/linux/powerpc/bits/atomicity.h index a3f672e5e..6969749e8 100644 --- a/libc/sysdeps/linux/powerpc/bits/atomicity.h +++ b/libc/sysdeps/linux/powerpc/bits/atomicity.h @@ -29,7 +29,7 @@ #endif static __ATOMICITY_INLINE int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { int tmp, result; @@ -43,7 +43,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static __ATOMICITY_INLINE void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { int tmp; @@ -56,7 +56,7 @@ atomic_add (volatile uint32_t *mem, int val) } static __ATOMICITY_INLINE int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { int result; @@ -73,7 +73,7 @@ compare_and_swap (volatile long int *p, long int oldval, long int newval) } static __ATOMICITY_INLINE long int -__attribute__ ((unused)) +__attribute_used__ always_swap (volatile long int *p, long int newval) { long int result; @@ -86,7 +86,7 @@ always_swap (volatile long int *p, long int newval) } static __ATOMICITY_INLINE int -__attribute__ ((unused)) +__attribute_used__ test_and_set (volatile long int *p, long int newval) { int result; diff --git a/libc/sysdeps/linux/sh/bits/machine-gmon.h b/libc/sysdeps/linux/sh/bits/machine-gmon.h index 6497859ad..f2ef019c7 100644 --- a/libc/sysdeps/linux/sh/bits/machine-gmon.h +++ b/libc/sysdeps/linux/sh/bits/machine-gmon.h @@ -21,7 +21,7 @@ #define mcount_internal __mcount_internal #define _MCOUNT_DECL(frompc, selfpc) \ -static void __attribute__((unused)) mcount_internal (u_long frompc, u_long selfpc) +static void __attribute_used__ mcount_internal (u_long frompc, u_long selfpc) /* * This mcount implementation expect the 'frompc' return address on diff --git a/libc/sysdeps/linux/sparc/bits/atomicity.h b/libc/sysdeps/linux/sparc/bits/atomicity.h index ec82541c2..22f5b3f50 100644 --- a/libc/sysdeps/linux/sparc/bits/atomicity.h +++ b/libc/sysdeps/linux/sparc/bits/atomicity.h @@ -23,7 +23,7 @@ #include <inttypes.h> static int -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, int val) { static unsigned char lock; @@ -46,7 +46,7 @@ exchange_and_add (volatile uint32_t *mem, int val) } static void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { static unsigned char lock; @@ -67,7 +67,7 @@ atomic_add (volatile uint32_t *mem, int val) } static int -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { static unsigned char lock; |