From: Mark Andrews Date: Wed, 24 Jun 2009 02:22:50 +0000 (+0000) Subject: 2615. [bug] "__attribute__((unused))" was in the wrong place X-Git-Tag: v9.5.2b1~36^2~48 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=76110b31fe98564564693a7daf2e99c78ff39a05;p=thirdparty%2Fbind9.git 2615. [bug] "__attribute__((unused))" was in the wrong place for ia64 gcc builds. [RT #19854] --- diff --git a/CHANGES b/CHANGES index 90e1396230c..7ffe4f9ee1b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2615. [bug] "__attribute__((unused))" was in the wrong place + for ia64 gcc builds. [RT #19854] + 2614. [port] win32: 'named -v' should automatically be executed in the foreground. [RT #19844] diff --git a/lib/isc/ia64/include/isc/atomic.h b/lib/isc/ia64/include/isc/atomic.h index d94bab0d5f0..6c22f2a53e2 100644 --- a/lib/isc/ia64/include/isc/atomic.h +++ b/lib/isc/ia64/include/isc/atomic.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: atomic.h,v 1.6 2009/02/04 23:48:09 tbox Exp $ */ +/* $Id: atomic.h,v 1.7 2009/06/24 02:22:50 marka Exp $ */ #ifndef ISC_ATOMIC_H #define ISC_ATOMIC_H 1 @@ -31,10 +31,10 @@ * (e.g., 1 and -1)? */ static inline isc_int32_t -isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) #ifdef __GNUC__ __attribute__ ((unused)) #endif +isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) { isc_int32_t prev, swapped; @@ -57,10 +57,10 @@ __attribute__ ((unused)) * This routine atomically stores the value 'val' in 'p'. */ static inline void -isc_atomic_store(isc_int32_t *p, isc_int32_t val) #ifdef __GNUC__ __attribute__ ((unused)) #endif +isc_atomic_store(isc_int32_t *p, isc_int32_t val) { __asm__ volatile( "st4.rel %0=%1" @@ -76,10 +76,10 @@ __attribute__ ((unused)) * case. */ static inline isc_int32_t -isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) #ifdef __GNUC__ __attribute__ ((unused)) #endif +isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { isc_int32_t ret;