[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86_emulate: Fix build with some versions of gcc targeting i386.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1288551693 0
# Node ID b6c553f62eded729b6c01f25a020193305fb9fd2
# Parent  faca957fd013281cdae648a7f472939eab414920
x86_emulate: Fix build with some versions of gcc targeting i386.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 xen/arch/x86/x86_emulate/x86_emulate.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r faca957fd013 -r b6c553f62ede xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c    Fri Oct 29 18:43:01 2010 +0100
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c    Sun Oct 31 19:01:33 2010 +0000
@@ -2101,9 +2101,11 @@ x86_emulate(
         case 4:
             _regs.edx = (uint32_t)(((int32_t)_regs.eax < 0) ? -1 : 0);
             break;
+#ifdef __x86_64__ /* compile warning with some versions of 32-bit gcc */
         case 8:
             _regs.edx = ((int64_t)_regs.eax < 0) ? -1 : 0;
             break;
+#endif
         }
         break;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.