1 |
blueness 15/02/01 03:25:22 |
2 |
|
3 |
Added: 23_all_i386-immediate-value-arg6.patch |
4 |
Log: |
5 |
Backport fix to allow immediate values as 6th syscall arg in i386, bug #538396 |
6 |
|
7 |
Revision Changes Path |
8 |
1.1 src/patchsets/uclibc/0.9.33.2/23_all_i386-immediate-value-arg6.patch |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/23_all_i386-immediate-value-arg6.patch?rev=1.1&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/23_all_i386-immediate-value-arg6.patch?rev=1.1&content-type=text/plain |
12 |
|
13 |
Index: 23_all_i386-immediate-value-arg6.patch |
14 |
=================================================================== |
15 |
From 576983880a0ab5d27a4f530d2cef36239b617e78 Mon Sep 17 00:00:00 2001 |
16 |
From: Natanael Copa <natanael.copa@×××××.com> |
17 |
Date: Thu, 5 Jul 2012 11:55:19 +0000 |
18 |
Subject: [PATCH] i386/bits/syscalls.h: allow immediate values as 6th syscall |
19 |
arg |
20 |
|
21 |
Allow use of immedate values as the 6th syscall argument. Otherwise we must |
22 |
store the arg on memory. This gives gcc more options to optimize better. |
23 |
|
24 |
This also works around an issue with posix_fallocate. |
25 |
|
26 |
Signed-off-by: Natanael Copa <ncopa@×××××××××××.org> |
27 |
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@×××××.com> |
28 |
--- |
29 |
libc/sysdeps/linux/i386/bits/syscalls.h | 2 +- |
30 |
1 file changed, 1 insertion(+), 1 deletion(-) |
31 |
|
32 |
diff --git a/libc/sysdeps/linux/i386/bits/syscalls.h b/libc/sysdeps/linux/i386/bits/syscalls.h |
33 |
index 9fb4f35..566b5ac 100644 |
34 |
--- a/libc/sysdeps/linux/i386/bits/syscalls.h |
35 |
+++ b/libc/sysdeps/linux/i386/bits/syscalls.h |
36 |
@@ -136,7 +136,7 @@ __asm__ ( |
37 |
#define ASMFMT_5(arg1, arg2, arg3, arg4, arg5) \ |
38 |
, "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5) |
39 |
#define ASMFMT_6(arg1, arg2, arg3, arg4, arg5, arg6) \ |
40 |
- , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "m" (arg6) |
41 |
+ , "a" (arg1), "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5), "g" (arg6) |
42 |
|
43 |
#else /* !PIC */ |
44 |
|
45 |
-- |
46 |
2.0.5 |