Received: from eggs.gnu.org ([140.186.70.92]:39492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMOQX-0008Ao-9q for qemu-devel@nongnu.org; Tue, 17 May 2011 13:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMOQV-00034t-4I for qemu-devel@nongnu.org; Tue, 17 May 2011 13:51:25 -0400 Received: from hall.aurel32.net ([88.191.126.93]:56872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMOQU-00030z-W7 for qemu-devel@nongnu.org; Tue, 17 May 2011 13:51:23 -0400 Date: Tue, 17 May 2011 19:51:13 +0200 From: Aurelien Jarno Message-ID: <20110517175113.GU30615@hall.aurel32.net> References: <1304420620-8409-1-git-send-email-hdegoede@redhat.com> <20110517112510.GM8769@teriyaki.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20110517112510.GM8769@teriyaki.redhat.com> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hans de Goede Cc: qemu-devel@nongnu.org On Tue, May 17, 2011 at 01:25:10PM +0200, Christophe Fergeau wrote: > Hi Hans, > > On Tue, May 03, 2011 at 01:03:40PM +0200, Hans de Goede wrote: > > diff --git a/target-i386/kvm.c b/target-i386/kvm.c > > index a13599d..e9e8d54 100644 > > --- a/target-i386/kvm.c > > +++ b/target-i386/kvm.c > > @@ -950,7 +950,7 @@ static int kvm_get_xsave(CPUState *env) > > @@ -966,7 +966,7 @@ static int kvm_get_xsave(CPUState *env) > > cwd = (uint16_t)xsave->region[0]; > > swd = (uint16_t)(xsave->region[0] >> 16); > > twd = (uint16_t)xsave->region[1]; > > - fop = (uint16_t)(xsave->region[1] >> 16); > > + /* fop = (uint16_t)(xsave->region[1] >> 16); */ > > Wouldn't it be better to drop this line? > > > env->fpstt = (swd >> 11) & 7; > > env->fpus = swd; > > env->fpuc = cwd; > > diff --git a/tcg/tcg.c b/tcg/tcg.c > > index 8748c05..11a8daf 100644 > > --- a/tcg/tcg.c > > +++ b/tcg/tcg.c > > @@ -585,7 +585,7 @@ void tcg_register_helper(void *func, const char *name) > > void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags, > > int sizemask, TCGArg ret, int nargs, TCGArg *args) > > { > > -#ifdef TCG_TARGET_I386 > > +#if defined TCG_TARGET_I386 && TCG_TARGET_REG_BITS < 64 > > This function uses #if defined(TCG_TARGET_I386) in other places, so I'd use > parentheses here for consistency. > > > int call_type; > > #endif > > int i; > > @@ -612,7 +612,7 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags, > > > > *gen_opc_ptr++ = INDEX_op_call; > > nparam = gen_opparam_ptr++; > > -#ifdef TCG_TARGET_I386 > > +#if defined TCG_TARGET_I386 && TCG_TARGET_REG_BITS < 64 > > Same here. > > Apart from that, I also need this patch to be able to build qemu on fedora > 15 :) > You should also probably split the patch in two parts, as it touch totally different parts of QEMU, and thus is going to be reviewed/applied by different person. I am fine with the TCG part after the comments from Christophe, so I'll apply it as soon as the new version is out. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net