More cygwin fixes
[platform/upstream/libffi.git] / patches / win32
1 Index: libffi/ChangeLog
2 ===================================================================
3 --- libffi.orig/ChangeLog
4 +++ libffi/ChangeLog
5 @@ -1,3 +1,9 @@
6 +2012-03-20  Peter Rosin  <peda@lysator.liu.se>
7 +
8 +       * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
9 +       * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
10 +       visible outside the PROC, so that ffi_closure_THISCALL can see it.
11 +
12  2012-03-19  Alan Hourihane  <alanh@fairlite.co.uk>
13  
14         * src/m68k/ffi.c: Add MINT support.
15 Index: libffi/testsuite/libffi.call/strlen2_win32.c
16 ===================================================================
17 --- libffi.orig/testsuite/libffi.call/strlen2_win32.c
18 +++ libffi/testsuite/libffi.call/strlen2_win32.c
19 @@ -13,7 +13,6 @@ static size_t __attribute__((fastcall))
20    return (strlen(s));
21  }
22  
23 -int d
24  int main (void)
25  {
26    ffi_cif cif;
27 Index: libffi/src/x86/win32.S
28 ===================================================================
29 --- libffi.orig/src/x86/win32.S
30 +++ libffi/src/x86/win32.S
31 @@ -187,7 +187,7 @@ ffi_closure_SYSV PROC NEAR FORCEFRAME
32          lea  edx, [ebp - 24]
33          mov  [ebp - 12], edx         ;; resp
34          lea  edx, [ebp + 8]
35 -stub:
36 +stub::
37          mov  [esp + 8], edx          ;; args
38          lea  edx, [ebp - 12]
39          mov  [esp + 4], edx          ;; &resp