summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/bits
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-04-20 06:33:11 +0000
committerEric Andersen <andersen@codepoet.org>2004-04-20 06:33:11 +0000
commitfbfde146ca8e9e2c830bbd659027a6ca69aa8c33 (patch)
treec330cdd430849f6ed133ec1856f60f5d076a916f /libc/sysdeps/linux/i386/bits
parent44ea58d5387b030e80ca1a5c1ea8bbd8bfc0cd54 (diff)
Cope with gcc 3.4's more aggressive persuit of attribute unused
Diffstat (limited to 'libc/sysdeps/linux/i386/bits')
-rw-r--r--libc/sysdeps/linux/i386/bits/atomicity.h6
-rw-r--r--libc/sysdeps/linux/i386/bits/mathinline.h2
2 files changed, 4 insertions, 4 deletions
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)); \