From owner-freebsd-ia64@FreeBSD.ORG Mon Jun 1 05:21:40 2009 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0FE810667E0 for ; Mon, 1 Jun 2009 05:20:57 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by mx1.freebsd.org (Postfix) with ESMTP id 8A2A18FC13 for ; Mon, 1 Jun 2009 05:20:57 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_fufyExBh/OA5SsQuXw4IQw)" Received: from MacBook-Pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KKJ0071EO69EJ60@asmtp022.mac.com> for freebsd-ia64@freebsd.org; Sun, 31 May 2009 22:20:38 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Doug Barton In-reply-to: <4A22CD21.9040309@dougbarton.us> Date: Sun, 31 May 2009 22:20:32 -0700 References: <4A22CD21.9040309@dougbarton.us> X-Mailer: Apple Mail (2.935.3) Cc: freebsd-ia64@freebsd.org, bind-users@isc.org Subject: Re: 9.6.1rc1 + FreeBSD 8 + IA64 compile problem X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 05:21:41 -0000 --Boundary_(ID_fufyExBh/OA5SsQuXw4IQw) Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT On May 31, 2009, at 11:32 AM, Doug Barton wrote: > > I also tried various other combinations of removing the #ifdef, > running it all onto the same line, etc. I'm not really familiar with > this usage of __attribute__ so I'm at a bit of a loss. My suggestion is to remove the whole attribute construct (see attached). It only suppresses a warning when a function is unused. In this case the function is defined as inline, so it's not causing a warning when not used. With the attached patch, the code compiles without errors or warnings on FreeBSD/ia64. FYI, -- Marcel Moolenaar xcllnt@mac.com --Boundary_(ID_fufyExBh/OA5SsQuXw4IQw) Content-type: application/octet-stream; x-unix-mode=0700; name=bind9.diff Content-transfer-encoding: 7bit Content-disposition: attachment; filename=bind9.diff Index: atomic.h =================================================================== --- atomic.h (revision 193194) +++ atomic.h (working copy) @@ -32,9 +32,6 @@ */ static inline isc_int32_t isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) -#ifdef __GNUC__ -__attribute__ ((unused)) -#endif { isc_int32_t prev, swapped; @@ -58,9 +55,6 @@ */ static inline void isc_atomic_store(isc_int32_t *p, isc_int32_t val) -#ifdef __GNUC__ -__attribute__ ((unused)) -#endif { __asm__ volatile( "st4.rel %0=%1" @@ -77,9 +71,6 @@ */ 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_int32_t ret; --Boundary_(ID_fufyExBh/OA5SsQuXw4IQw)--