Received: from [140.186.70.92] (port=46041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5fD5-00048r-CQ for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:48:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5fD2-0004RQ-Tf for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:48:06 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:64298 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5fD2-0004Qv-N8 for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:48:04 -0400 Date: Tue, 12 Oct 2010 17:47:58 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test In-Reply-To: <1286888457-5033-9-git-send-email-pbonzini@redhat.com> Message-ID: References: <1286888457-5033-1-git-send-email-pbonzini@redhat.com> <1286888457-5033-9-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Tue, 12 Oct 2010, Paolo Bonzini wrote: > Do not hardcode the list of 64-bit CPUs. > > Signed-off-by: Paolo Bonzini > --- > configure | 14 ++++++++------ > 1 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/configure b/configure > index cb76177..873e4a6 100755 > --- a/configure > +++ b/configure > @@ -1088,12 +1088,14 @@ esac > fi > > # 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 > +fi This is wrong. -- mailto:av1474@comtv.ru