WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] x86_emulate/x86_emulate.c:2105: warning: comparison is a

To: Teck Choon Giam <giamteckchoon@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] x86_emulate/x86_emulate.c:2105: warning: comparison is always false due to limited range of data type
From: Keir Fraser <keir@xxxxxxx>
Date: Sun, 31 Oct 2010 19:04:25 +0000
Cc:
Delivery-date: Sun, 31 Oct 2010 12:05:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=60mvJ7gwtPJfk3aBZukSWGsc279BYk8nRmtRsxEvLB8=; b=V7ElKDF9maJ9tcLNvSiB1pNoq/5ViK0wPSJjiq5UhPCOHwvJtd+t9MZM+v2RV2/yhf BB/XRoL4SnJECnlKSJd883U5wgB0Tzg7dCZCFaANLFmx1UKqQAl4fyc/t0n5wn/x7/w5 dkt05J8bufyy8Kmb2bCTwWlA80hjLNOXeYmUo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=GoQFYGvHVkYABT/mtSlWg1dNTfyxuvQwOUQgdrdDYIPbbPgnt0xZpl2jQ1NO5k7Z2A KlYG9IF5eWZXshSLr5T9kSTcFnnu8qD2GVs+NzHLOZMcqSL3iecpUErsIJk77h0NRaGo 8l1Er97jC7eKVO3X8tXffAfc0NeNINkeEek2M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinG5x+3yVizYSYAaLcDt1YhQw_04anRu9umswd4@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Act5Lm8fSiAWdgYtx0+B1OeCSYf9ww==
Thread-topic: [Xen-devel] x86_emulate/x86_emulate.c:2105: warning: comparison is always false due to limited range of data type
User-agent: Microsoft-Entourage/12.27.0.100910
Clever compiler. Should be fixed by xen-4.0-testing:21378.

 Thanks,
 Keir

On 31/10/2010 18:38, "Teck Choon Giam" <giamteckchoon@xxxxxxxxx> wrote:

> Hi,
> 
> Changeset 21377 in xen-4.0-testing.hg compile error:
> 
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> -mtune=generic -fasynchronous-unwind-tables -O1
> -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686
> -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> -Wno-unused-value -Wdeclaration-after-statement  -O1
> -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686
> -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> -Wno-unused-value -Wdeclaration-after-statement  -O1
> -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686
> -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> -Wno-unused-value -Wdeclaration-after-statement  -nostdinc
> -fno-builtin -fno-common -iwithprefix include -Werror
> -Wno-pointer-arith -pipe
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-generic
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-default
> -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__
> -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF
> .xen.d -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32
> -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall
> -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
> -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror
> -Wno-pointer-arith -pipe
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-generic
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-default
> -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__
> -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF
> .built_in.o.d -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
> -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall
> -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
> -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror
> -Wno-pointer-arith -pipe
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-generic
> -I/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/include/asm-x86/mach-default
> -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__
> -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF
> .x86_emulate.o.d -c x86_emulate.c -o x86_emulate.o
> cc1: warnings being treated as errors
> In file included from x86_emulate.c:17:
> x86_emulate/x86_emulate.c: In function 'x86_emulate':
> x86_emulate/x86_emulate.c:2105: warning: comparison is always false
> due to limited range of data type
> make[4]: *** [x86_emulate.o] Error 1
> make[4]: Leaving directory
> `/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/arch/x86'
> make[3]: *** 
> [/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/arch/x86/built_in.o]
> Error 2
> make[3]: Leaving directory
> `/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/arch/x86'
> make[2]: *** [/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen/xen] Error 2
> make[2]: Leaving directory `/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/builddir/build/BUILD/xen-4.0.2-rc1-pre-src/xen'
> make: *** [install-xen] Error 2
> 
> Thanks.
> 
> Kindest regards,
> Giam Teck Choon
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel