Restore execute permissions
[platform/upstream/libffi.git] / patches / fix-comments
1 Index: libffi/ChangeLog
2 ===================================================================
3 --- libffi.orig/ChangeLog
4 +++ libffi/ChangeLog
5 @@ -1,3 +1,8 @@
6 +2010-03-14  Matthias Klose  <doko@ubuntu.com>
7 +
8 +       * src/x86/ffi64.c: Fix typo in comment.
9 +       * src/x86/ffi.c: Use /* ... */ comment style.
10 +
11  2010-07-07   Neil Roberts <neil@linux.intel.com>
12  
13         * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
14 Index: libffi/src/x86/ffi.c
15 ===================================================================
16 --- libffi.orig/src/x86/ffi.c
17 +++ libffi/src/x86/ffi.c
18 @@ -585,10 +585,10 @@ ffi_prep_raw_closure_loc (ffi_raw_closur
19      return FFI_BAD_ABI;
20    }
21  
22 -  // we currently don't support certain kinds of arguments for raw
23 -  // closures.  This should be implemented by a separate assembly language
24 -  // routine, since it would require argument processing, something we
25 -  // don't do now for performance.
26 +  /* we currently don't support certain kinds of arguments for raw
27 +     closures.  This should be implemented by a separate assembly
28 +     language routine, since it would require argument processing,
29 +     something we don't do now for performance.  */
30  
31    for (i = cif->nargs-1; i >= 0; i--)
32      {
33 Index: libffi/src/x86/ffi64.c
34 ===================================================================
35 --- libffi.orig/src/x86/ffi64.c
36 +++ libffi/src/x86/ffi64.c
37 @@ -50,9 +50,10 @@ extern void ffi_call_unix64 (void *args,
38     gcc/config/i386/i386.c. Do *not* change one without the other.  */
39  
40  /* Register class used for passing given 64bit part of the argument.
41 -   These represent classes as documented by the PS ABI, with the exception
42 -   of SSESF, SSEDF classes, that are basically SSE class, just gcc will
43 -   use SF or DFmode move instead of DImode to avoid reformating penalties.
44 +   These represent classes as documented by the PS ABI, with the
45 +   exception of SSESF, SSEDF classes, that are basically SSE class,
46 +   just gcc will use SF or DFmode move instead of DImode to avoid
47 +   reformatting penalties.
48  
49     Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves
50     whenever possible (upper half does contain padding).  */