From patchwork Fri Jan 22 21:04:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 43512 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 85B91B7CA0 for ; Sat, 23 Jan 2010 08:14:06 +1100 (EST) Received: from localhost ([127.0.0.1]:33718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYQhq-0001GK-BW for incoming@patchwork.ozlabs.org; Fri, 22 Jan 2010 16:06:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYQgr-0001GF-35 for qemu-devel@nongnu.org; Fri, 22 Jan 2010 16:05:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYQgm-0001Ef-7V for qemu-devel@nongnu.org; Fri, 22 Jan 2010 16:05:12 -0500 Received: from [199.232.76.173] (port=47194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYQgm-0001EY-4y for qemu-devel@nongnu.org; Fri, 22 Jan 2010 16:05:08 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:65452) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYQgl-0002kR-8T for qemu-devel@nongnu.org; Fri, 22 Jan 2010 16:05:07 -0500 Received: from flocke.weilnetz.de (p54ADF3EB.dip.t-dialin.net [84.173.243.235]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MNPzx-1NS65Z2ISP-006cqR; Fri, 22 Jan 2010 22:04:56 +0100 Received: from stefan by flocke.weilnetz.de with local (Exim 4.71) (envelope-from ) id 1NYQgZ-0007Rk-FJ; Fri, 22 Jan 2010 22:04:55 +0100 From: Stefan Weil To: qemu-devel@nongnu.org Date: Fri, 22 Jan 2010 22:04:54 +0100 Message-Id: <1264194294-28593-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.6.5 X-Provags-ID: V01U2FsdGVkX19dDZVUnPyMm+WxaLeprDiDsSUrzh6nLXFUAL3 zCg6hFPn63ORRgMYo/4Oo4yzZXBWngnNooA27BDOpBf+qJJecx bMvQ+YmP1ZGNC2HqhDSr2OlzaDQq3ToE47/4dRdZHWZnvHxhLJ m7A== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Subject: [Qemu-devel] [PATCH] arm host: Fix linker warning (m68k targets) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Compilation of m68k-softmmu or m68k-linux-user on arm host (or cross compilation for arm) results in a linker warning: LINK m68k-softmmu/qemu-system-m68k m68k-dis.o: warning: definition of `floatformat_ieee_single_little' overriding common arm-dis.o: warning: common is here /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/bin/ld: Warning: size of symbol `floatformat_ieee_single_little' changed from 4 in arm-dis.o to 48 in m68k-dis.o floatformat_ieee_single_little is declared in arm-dis.c and m68k-dis.c, and both declarations don't match, so this is an error. The symbol is not needed in arm-dis.c, so I removed it there. Signed-off-by: Stefan Weil --- arm-dis.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arm-dis.c b/arm-dis.c index 2c67d8f..4fb899e 100644 --- a/arm-dis.c +++ b/arm-dis.c @@ -60,10 +60,8 @@ #define FPU_VFP_EXT_V3 0 #define FPU_NEON_EXT_V1 0 -int floatformat_ieee_single_little; /* Assume host uses ieee float. */ -static void floatformat_to_double (int *ignored, unsigned char *data, - double *dest) +static void floatformat_to_double (unsigned char *data, double *dest) { union { uint32_t i; @@ -2543,9 +2541,7 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb) valbytes[2] = (value >> 16) & 0xff; valbytes[3] = (value >> 24) & 0xff; - floatformat_to_double - (&floatformat_ieee_single_little, valbytes, - &fvalue); + floatformat_to_double (valbytes, &fvalue); func (stream, "#%.7g\t; 0x%.8lx", fvalue, value);