ffi.c: Do not include stdlib.h.
authorUros Bizjak <ubizjak@gmail.com>
Fri, 25 Jul 2014 09:01:45 +0000 (11:01 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 25 Jul 2014 09:01:45 +0000 (11:01 +0200)
* src/alpha/ffi.c: Do not include stdlib.h.
(ffi_closure_osf_inner) <default>: Use FFI_ASSERT instead of abort.

From-SVN: r213049

libffi/ChangeLog
libffi/src/alpha/ffi.c

index f5fdccb36c436f01686973dbcb1593e83eb5b0f9..a2db36614fd478870eb23339614692fe1de1b86e 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
+
+       * src/alpha/ffi.c: Do not include stdlib.h.
+       (ffi_closure_osf_inner) <default>: Use FFI_ASSERT instead of abort.
+
 2014-07-04  Thomas Schwinge  <thomas@codesourcery.com>
 
        * testsuite/lib/libffi.exp (libffi-dg-runtest): Change interface
index 192f691c4a20a8f0465affc3463231db2657335c..cf0a730afb61f5735cf256b8bfd92e3071791415 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <ffi.h>
 #include <ffi_common.h>
-#include <stdlib.h>
 
 /* Force FFI_TYPE_LONGDOUBLE to be different than FFI_TYPE_DOUBLE;
    all further uses in this file will refer to the 128-bit type.  */
@@ -273,7 +272,7 @@ ffi_closure_osf_inner(ffi_closure *closure, void *rvalue, unsigned long *argp)
          break;
 
        default:
-         abort ();
+         FFI_ASSERT (0);
        }
 
       argn += ALIGN(size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG;