]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2615. [bug] "__attribute__((unused))" was in the wrong place
authorMark Andrews <marka@isc.org>
Wed, 24 Jun 2009 02:21:28 +0000 (02:21 +0000)
committerMark Andrews <marka@isc.org>
Wed, 24 Jun 2009 02:21:28 +0000 (02:21 +0000)
                        for ia64 gcc builds. [RT #19854]

CHANGES
lib/isc/ia64/include/isc/atomic.h

diff --git a/CHANGES b/CHANGES
index 0af833bcae9cd05b727ef2ca15e6f5a1aa81b159..e29ac7eda60de21b49383ca4eb7930c8494393e0 100644 (file)
--- 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]
 
index 4c4679772044388012cd089e260492e00f6da12f..d825819de3ff40c594a2087c0bb50a94324b49af 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: atomic.h,v 1.4.326.2 2009/02/06 23:47:11 tbox Exp $ */
+/* $Id: atomic.h,v 1.4.326.3 2009/06/24 02:21:28 marka Exp $ */
 
 #ifndef ISC_ATOMIC_H
 #define ISC_ATOMIC_H 1
  * (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;