On 2012-08-04 06:13, Blue Swirl wrote:
> On Fri, Aug 3, 2012 at 10:40 PM, Richard Henderson <r...@twiddle.net> 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~


Reply via email to