X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=toolchain%2FuClibc%2Fpatches-0.9.33.2%2F024-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch;fp=toolchain%2FuClibc%2Fpatches-0.9.33.2%2F024-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch;h=2f75fbe2a5c9d38bd513175b6f48e1f620ba512a;hb=4ecc5c8ffec4bcc50efaf5d90a2583335a8c88eb;hp=0000000000000000000000000000000000000000;hpb=3da7fe6e5b86a25f25374e440ce7b5046f8e3c30;p=openwrt%2Fopenwrt.git diff --git a/toolchain/uClibc/patches-0.9.33.2/024-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch b/toolchain/uClibc/patches-0.9.33.2/024-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch new file mode 100644 index 0000000000..2f75fbe2a5 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/024-i386-bits-syscalls.h-allow-immediate-values-as-6th-s.patch @@ -0,0 +1,25 @@ +From: Natanael Copa +Date: Thu, 5 Jul 2012 11:55:19 +0000 +Subject: [PATCH] i386/bits/syscalls.h: allow immediate values as 6th syscall + arg + +Allow use of immedate values as the 6th syscall argument. Otherwise we must +store the arg on memory. This gives gcc more options to optimize better. + +This also works around an issue with posix_fallocate. + +Signed-off-by: Natanael Copa +Signed-off-by: Bernhard Reutner-Fischer +--- + +--- a/libc/sysdeps/linux/i386/bits/syscalls.h ++++ b/libc/sysdeps/linux/i386/bits/syscalls.h +@@ -136,7 +136,7 @@ __asm__ ( + #define ASMFMT_5(arg1, arg2, arg3, arg4, arg5) \ + , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5) + #define ASMFMT_6(arg1, arg2, arg3, arg4, arg5, arg6) \ +- , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "m" (arg6) ++ , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "g" (arg6) + + #else /* !PIC */ +