Re: [PATCH v2] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Richard Henderson
On 5/21/20 6:57 AM, Alex Bennée wrote: > Newer clangs rightly spot that you can never exceed the full address > space of 64 bit hosts with: > > linux-user/elfload.c:2076:41: error: result of comparison 'unsigned > long' > 18446744073709551615 is always false > [-Werror,-Wtautological-type-li

Re: [PATCH v2] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Peter Maydell
On Thu, 21 May 2020 at 14:58, Alex Bennée wrote: > > Newer clangs rightly spot that you can never exceed the full address > space of 64 bit hosts with: > > linux-user/elfload.c:2076:41: error: result of comparison 'unsigned > long' > 18446744073709551615 is always false > [-Werror,-Wtautolog

[PATCH v2] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Alex Bennée
Newer clangs rightly spot that you can never exceed the full address space of 64 bit hosts with: linux-user/elfload.c:2076:41: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare] 4685 if ((guest_hiaddr - gue