This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error in src/powerpc/ffi_darwin.c


Hi Anthony,

I am testing libffi v 3.0.10 & 3.0.11 on PowerPC/AIX, I think there is an
error in src/powerpc/ffi_darwin.c  
1. It misses a "break" for case FFI_AIX:
2. It fails the testcases for FFI_BAD_ABI (e.g. err_bad_abi.c)


Here is the local modification I made:
Could you validate them ?

--- ffi_darwin.c        (revision 229)
+++ ffi_darwin.c        (working copy)
@@ -1065,11 +1065,12 @@
       closure->cif = cif;
       closure->fun = fun;
       closure->user_data = user_data;
+      break;

     default:

-      FFI_ASSERT(0);
-      break;
+//    FFI_ASSERT(0);
+      return FFI_BAD_ABI;
     }
   return FFI_OK;
 }
-- 
View this message in context: http://old.nabble.com/error-in-src-powerpc-ffi_darwin.c-tp33421057p33421057.html
Sent from the Sourceware - libffi-discuss mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]