5df42ea95d94e5413ec53dd1f4e17bf8a0c7a06d
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0027-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch
1 From 576983880a0ab5d27a4f530d2cef36239b617e78 Mon Sep 17 00:00:00 2001
2 From: Natanael Copa <natanael.copa@gmail.com>
3 Date: Thu, 5 Jul 2012 11:55:19 +0000
4 Subject: [PATCH] i386/bits/syscalls.h: allow immediate values as 6th syscall
5  arg
6
7 Allow use of immedate values as the 6th syscall argument. Otherwise we must
8 store the arg on memory. This gives gcc more options to optimize better.
9
10 This also works around an issue with posix_fallocate.
11
12 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
13 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 ---
15  libc/sysdeps/linux/i386/bits/syscalls.h |    2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/libc/sysdeps/linux/i386/bits/syscalls.h b/libc/sysdeps/linux/i386/bits/syscalls.h
19 index 9fb4f35..566b5ac 100644
20 --- a/libc/sysdeps/linux/i386/bits/syscalls.h
21 +++ b/libc/sysdeps/linux/i386/bits/syscalls.h
22 @@ -136,7 +136,7 @@ __asm__ (
23  #define ASMFMT_5(arg1, arg2, arg3, arg4, arg5) \
24         , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5)
25  #define ASMFMT_6(arg1, arg2, arg3, arg4, arg5, arg6) \
26 -       , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "m" (arg6)
27 +       , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "g" (arg6)
28  
29  #else /* !PIC */
30  
31 -- 
32 1.7.10.4
33