Commit 735e7be4fb2a0401a9ca66cc64004b8b3418feb3

Anthony Green 2022-09-18T08:21:34

X86 is never defined.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index b82d8c0..7ca1340 100644
--- a/src/x86/ffi.c
+++ b/src/x86/ffi.c
@@ -117,8 +117,6 @@ ffi_prep_cif_machdep(ffi_cif *cif)
       flags = X86_RET_INT64;
       break;
     case FFI_TYPE_STRUCT:
-#ifndef X86
-      /* ??? This should be a different ABI rather than an ifdef.  */
       if (cif->rtype->size == 1)
 	flags = X86_RET_STRUCT_1B;
       else if (cif->rtype->size == 2)
@@ -128,7 +126,6 @@ ffi_prep_cif_machdep(ffi_cif *cif)
       else if (cif->rtype->size == 8)
 	flags = X86_RET_INT64;
       else
-#endif
 	{
 	do_struct:
 	  switch (cabi)