Skip to content
This repository
Browse code

mend

  • Loading branch information...
commit 10e77227b6ae85f46f28590bfb09ca3608554358 1 parent a952141
Anthony Green authored
10 ChangeLog
... ... @@ -1,3 +1,13 @@
  1 +2013-02-09 Anthony Green <green@moxielogic.com>
  2 +
  3 + * testsuite/libffi.call/negint.c: Remove forced -O2.
  4 + * testsuite/libffi.call/many2.c (foo): Remove GCCism.
  5 + * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
  6 +
  7 + * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
  8 + closure return type fix developed by Martin v. Löwis for cpython
  9 + fork.
  10 +
1 11 2013-02-08 Andreas Tobler <andreast@fgznet.ch>
2 12
3 13 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
13 README
@@ -43,7 +43,7 @@ Libffi has been ported to many different platforms.
43 43 For specific configuration details and testing status, please
44 44 refer to the wiki page here:
45 45
46   - http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.11
  46 + http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.12
47 47
48 48 At the time of release, the following basic configurations have been
49 49 tested:
@@ -61,19 +61,21 @@ tested:
61 61 | HPPA | HPUX | GCC |
62 62 | IA-64 | Linux | GCC |
63 63 | M68K | FreeMiNT | GCC |
  64 +| M68K | Linux | GCC |
64 65 | M68K | RTEMS | GCC |
65 66 | MicroBlaze | Linux | GCC |
66 67 | MIPS | IRIX | GCC |
67 68 | MIPS | Linux | GCC |
68 69 | MIPS | RTEMS | GCC |
69 70 | MIPS64 | Linux | GCC |
70   -| PowerPC 32-bit | AIX 6.1.0.0 | IBM XL C/C++, V11.1 |
71   -| PowerPC 32-bit | AIX 7.1.1.0 | IBM XL C/C++, V11.1 |
  71 +| PowerPC 32-bit | AIX | IBM XL C |
  72 +| PowerPC 64-bit | AIX | IBM XL C |
72 73 | PowerPC | AMIGA | GCC |
73 74 | PowerPC | Linux | GCC |
74 75 | PowerPC | Mac OSX | GCC |
75 76 | PowerPC | FreeBSD | GCC |
76   -| PowerPC64 | Linux | GCC |
  77 +| PowerPC 64-bit | FreeBSD | GCC |
  78 +| PowerPC 64-bit | Linux | GCC |
77 79 | S390 | Linux | GCC |
78 80 | S390X | Linux | GCC |
79 81 | SPARC | Linux | GCC |
@@ -84,6 +86,7 @@ tested:
84 86 | SPARC64 | Solaris | Oracle Solaris Studio C |
85 87 | TILE-Gx/TILEPro | Linux | GCC |
86 88 | X86 | FreeBSD | GCC |
  89 +| X86 | GNU HURD | GCC |
87 90 | X86 | Interix | GCC |
88 91 | X86 | kFreeBSD | GCC |
89 92 | X86 | Linux | GCC |
@@ -145,7 +148,7 @@ For iOS builds, the 'libffi.xcodeproj' Xcode project is available.
145 148 Configure has many other options. Use "configure --help" to see them all.
146 149
147 150 Once configure has finished, type "make". Note that you must be using
148   -GNU make. You can ftp GNU make from prep.ai.mit.edu:/pub/gnu.
  151 +GNU make. You can ftp GNU make from ftp.gnu.org:/pub/gnu/make .
149 152
150 153 To ensure that libffi is working as advertised, type "make check".
151 154 This will require that you have DejaGNU installed.
10 testsuite/libffi.call/cls_ulonglong.c
@@ -11,7 +11,7 @@
11 11 static void cls_ret_ulonglong_fn(ffi_cif* cif __UNUSED__, void* resp,
12 12 void** args, void* userdata __UNUSED__)
13 13 {
14   - *(unsigned long long *)resp= *(unsigned long long *)args[0];
  14 + *(unsigned long long *)resp= 0xfffffffffffffffLL ^ *(unsigned long long *)args[0];
15 15
16 16 printf("%" PRIuLL ": %" PRIuLL "\n",*(unsigned long long *)args[0],
17 17 *(unsigned long long *)(resp));
@@ -34,14 +34,14 @@ int main (void)
34 34 &ffi_type_uint64, cl_arg_types) == FFI_OK);
35 35 CHECK(ffi_prep_closure_loc(pcl, &cif, cls_ret_ulonglong_fn, NULL, code) == FFI_OK);
36 36 res = (*((cls_ret_ulonglong)code))(214LL);
37   - /* { dg-output "214: 214" } */
  37 + /* { dg-output "214: 1152921504606846761" } */
38 38 printf("res: %" PRIdLL "\n", res);
39   - /* { dg-output "\nres: 214" } */
  39 + /* { dg-output "\nres: 1152921504606846761" } */
40 40
41 41 res = (*((cls_ret_ulonglong)code))(9223372035854775808LL);
42   - /* { dg-output "\n9223372035854775808: 9223372035854775808" } */
  42 + /* { dg-output "\n9223372035854775808: 8070450533247928831" } */
43 43 printf("res: %" PRIdLL "\n", res);
44   - /* { dg-output "\nres: 9223372035854775808" } */
  44 + /* { dg-output "\nres: 8070450533247928831" } */
45 45
46 46 exit(0);
47 47 }

0 comments on commit 10e7722

Please sign in to comment.
Something went wrong with that request. Please try again.