|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test |
Date: | Tue, 12 Oct 2010 16:40:08 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
On 10/12/2010 04:38 PM, malc wrote:
On Tue, 12 Oct 2010, Paolo Bonzini wrote:On 10/12/2010 03:47 PM, malc wrote:# host long bits test -hostlongbits="32" -case "$cpu" in - x86_64|alpha|ia64|sparc64|ppc64|s390x) - hostlongbits=64 - ;; -esac +cat> $TMPC<< EOF +int sizeof_long_is_8[sizeof(long) == 8 ? 1 : -1]; +EOF +if compile_object; then +hostlongbits=64 +else +hostlongbits=32 +fiThis is wrong.Care to expand?Gives wrong results on Win64.
Then it's not HOST_LONG_BITS, it's HOST_POINTER_BITS. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |