adjust libffi hacks that avoid warnings

This commit is contained in:
Matthew Flatt 2010-07-14 06:24:30 -06:00
parent de94854243
commit a530109d17
5 changed files with 7 additions and 11 deletions

View File

@ -2,6 +2,7 @@ Version 5.0.0.9
Continuation barriers now block only downward continuation jumps Continuation barriers now block only downward continuation jumps
and allow escapes through full continuations and allow escapes through full continuations
Added #:async-apply option to _fun Added #:async-apply option to _fun
Upgraded to libffi 3.0.9+
Version 5.0.0.8 Version 5.0.0.8
Changed internal-definition handling to allow expressions mixed Changed internal-definition handling to allow expressions mixed

4
src/configure vendored
View File

@ -12250,10 +12250,6 @@ if test -d "${srcdir}/foreign" && test "${enable_foreign}" = "yes" ; then
FOREIGNTARGET="foreign-stuff" FOREIGNTARGET="foreign-stuff"
FOREIGN_IF_USED="FOREIGN_USED" FOREIGN_IF_USED="FOREIGN_USED"
# --disable-multilib is needed to avoid problems when running libffi's
# configure script. This thing affects all usages of AC_CONFIG_SUBDIRS, but
# other scripts do not use it anyway.
ac_configure_args="$ac_configure_args --disable-multilib"
else else
FOREIGNTARGET="foreign-stub" FOREIGNTARGET="foreign-stub"
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN" MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"

View File

@ -14,7 +14,8 @@ ways at git commit 3f5b1375ab1e2b8e3d59 from
Local changes: Local changes:
* cast ftruncate() result in "closures.c" to avoid warning. * Test ftruncate() result in "closures.c" to avoid a compiler
warning.
========== libffi_msvc directory ===================================== ========== libffi_msvc directory =====================================

View File

@ -413,7 +413,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
close (execfd); close (execfd);
goto retry_open; goto retry_open;
} }
(void)ftruncate (execfd, offset); if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
}
return MFAIL; return MFAIL;
} }
else if (!offset else if (!offset
@ -425,7 +426,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
if (start == MFAIL) if (start == MFAIL)
{ {
munmap (ptr, length); munmap (ptr, length);
(void)ftruncate (execfd, offset); if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
}
return start; return start;
} }

View File

@ -1586,10 +1586,6 @@ if test -d "${srcdir}/foreign" && test "${enable_foreign}" = "yes" ; then
AC_CONFIG_SUBDIRS( foreign/libffi ) AC_CONFIG_SUBDIRS( foreign/libffi )
FOREIGNTARGET="foreign-stuff" FOREIGNTARGET="foreign-stuff"
FOREIGN_IF_USED="FOREIGN_USED" FOREIGN_IF_USED="FOREIGN_USED"
# --disable-multilib is needed to avoid problems when running libffi's
# configure script. This thing affects all usages of AC_CONFIG_SUBDIRS, but
# other scripts do not use it anyway.
ac_configure_args="$ac_configure_args --disable-multilib"
else else
FOREIGNTARGET="foreign-stub" FOREIGNTARGET="foreign-stub"
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN" MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"