[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test
From: |
malc |
Subject: |
Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test |
Date: |
Tue, 12 Oct 2010 18:41:44 +0400 (MSD) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
On Tue, 12 Oct 2010, Paolo Bonzini wrote:
> 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
> > > > > +fi
> > > >
> > > > This is wrong.
> > >
> > > Care to expand?
> >
> > Gives wrong results on Win64.
>
> Then it's not HOST_LONG_BITS, it's HOST_POINTER_BITS.
Not quite, [s]size_t/ptrdiff_t are 64 bits wide udner Win64, little
to do with pointers.
>
> Paolo
>
--
mailto:address@hidden
- [Qemu-devel] [PATCH 09/39] fix spelling of $pkg_config, move default together with other cross tools, (continued)
- [Qemu-devel] [PATCH 09/39] fix spelling of $pkg_config, move default together with other cross tools, Paolo Bonzini, 2010/10/12
- [Qemu-devel] [PATCH 07/39] do not pass bogus $(SRC_PATH) include paths to cc during configure, Paolo Bonzini, 2010/10/12
- [Qemu-devel] [PATCH 10/39] do not default to non-prefixed pkg-config when cross compiling, Paolo Bonzini, 2010/10/12
- [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, Paolo Bonzini, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, malc, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, Paolo Bonzini, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, malc, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, Paolo Bonzini, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test,
malc <=
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, Paolo Bonzini, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, malc, 2010/10/12
- Re: [Qemu-devel] [PATCH 08/39] provide portable sizeof(long) test, Paolo Bonzini, 2010/10/12
[Qemu-devel] [PATCH 12/39] move --srcdir detection earlier, Paolo Bonzini, 2010/10/12
[Qemu-devel] [PATCH 11/39] reorganize sdl-config tests, Paolo Bonzini, 2010/10/12
[Qemu-devel] [PATCH 14/39] remove HOST_CC mention from roms/{sea, vga}bios/config.mak, Paolo Bonzini, 2010/10/12
[Qemu-devel] [PATCH 13/39] properly detect compiler in tests/Makefile, Paolo Bonzini, 2010/10/12