From fbfde146ca8e9e2c830bbd659027a6ca69aa8c33 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 20 Apr 2004 06:33:11 +0000 Subject: Cope with gcc 3.4's more aggressive persuit of attribute unused --- libc/sysdeps/linux/m68k/bits/atomicity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/m68k') 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; -- cgit v1.2.3