From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxhPS-0007Xd-RA for qemu-devel@nongnu.org; Sat, 04 Aug 2012 12:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxhPR-0000EO-Ie for qemu-devel@nongnu.org; Sat, 04 Aug 2012 12:41:02 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:36980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxhPR-0000DX-C9 for qemu-devel@nongnu.org; Sat, 04 Aug 2012 12:41:01 -0400 Received: by pbbro12 with SMTP id ro12so2950488pbb.4 for ; Sat, 04 Aug 2012 09:41:00 -0700 (PDT) Sender: Richard Henderson Message-ID: <501D5095.1080503@twiddle.net> Date: Sat, 04 Aug 2012 09:40:53 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1344033657-9135-1-git-send-email-rth@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 00/10] {alpha-}linux user improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On 2012-08-04 06:13, Blue Swirl wrote: > On Fri, Aug 3, 2012 at 10:40 PM, Richard Henderson wrote: >> Tree at >> >> git://repo.or.cz/qemu/rth.git axp-next > > I get this error: > CC arm-linux-user/linux-user/syscall.o > /src/qemu/linux-user/syscall.c: In function 'do_syscall': > /src/qemu/linux-user/syscall.c:720:34: error: array subscript is below > array bounds [-Werror=array-bounds] Hmph. gcc 4.6 didn't see this, but gcc 4.7 did. Quite an annoying message too, because it tells you nothing of where the caller of this inline function is. However: @@ -6449,7 +6449,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, errno = 0; ret = getpriority(arg1, arg2); if (ret == -1 && errno != 0) { - ret = get_errno(errno); + ret = -host_to_target_errno(errno); break; Re-pushed the tree with that change. Please try again. r~