-std=gnu17 \
-Wall \
-Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
- -Wno-unused-but-set-variable
+ -Wno-unused-but-set-variable -Wno-tautological-compare
add_args_to_ldflags -no-pie # -Wl,-z,lazy
printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
-if test "$use" != "mingw" ; then
+if test "$use" != "mingw" && test "$use" != "386-gnu" ; then
if test "$ac_cv_sizeof_time_t" != "8" ; then
as_fn_error $? "Cannot define a 64 bit time_t" "$LINENO" 5
fi
fi
-if test "$use" = "386-macosx" ; then
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: emulating sbrk for mac" >&5
-printf "%s\n" "emulating sbrk for mac" >&6; };
+if test "$use" = "386-macosx" || test "$use" = "386-gnu" || test "$use" = "gnuwin95" || test "$use" = "mingw" ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: special sbrk handling" >&5
+printf "%s\n" "special sbrk handling" >&6; };
HAVE_SBRK=0
fi
-std=gnu17 \
-Wall \
-Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
- -Wno-unused-but-set-variable
+ -Wno-unused-but-set-variable -Wno-tautological-compare
add_args_to_ldflags -no-pie # -Wl,-z,lazy
AC_CHECK_HEADERS([time.h sys/time.h])
AC_CHECK_SIZEOF(time_t,[0],[#include <time.h>])
-if test "$use" != "mingw" ; then
+if test "$use" != "mingw" && test "$use" != "386-gnu" ; then
if test "$ac_cv_sizeof_time_t" != "8" ; then
AC_MSG_ERROR([Cannot define a 64 bit time_t])
fi
AC_MSG_RESULT([no: WARNING you must be able to emulate sbrk: as on mingw or macosx]),
AC_MSG_RESULT([no: WARNING you must be able to emulate sbrk: as on mingw or macosx]))
-if test "$use" = "386-macosx" ; then
- AC_MSG_RESULT([emulating sbrk for mac]);
+if test "$use" = "386-macosx" || test "$use" = "386-gnu" || test "$use" = "gnuwin95" || test "$use" = "mingw" ; then
+ AC_MSG_RESULT([special sbrk handling]);
HAVE_SBRK=0
fi
-"Version_2_6_15pre17"
+"Version_2_6_15pre18"
#undef HAVE_D_TYPE /*FIXME defined, but not implemented in readdir*/
/* #define NO_FILE_LOCKING */ /*FIXME*/
-
+#define ROUNDUP(x_,y_) (((unsigned long)(x_)+(y_ -1)) & ~(y_ -1))/*FIXME double eval*/
#define INITIALIZE_BRK \
massert(!brk(gcl_alloc_initialized ? core_end : \
({extern ufixnum _end;(void *)ROUNDUP((ufixnum)&_end,PAGESIZE);})))
static void
contblock_array_push(void *p) {
+ ufixnum f=contblock_array==Cnil ? 0 : contblock_array->v.v_fillp;/*FIXME*/
+
expand_contblock_array();
- contblock_array->v.v_self[contblock_array->v.v_fillp]=p;
+ memmove(contblock_array->v.v_self+f+1,contblock_array->v.v_self+f,
+ (contblock_array->v.v_fillp-f)*sizeof(*contblock_array->v.v_self));
+ contblock_array->v.v_self[f]=p;
contblock_array->v.v_fillp++;
}
}
-#ifdef HAVE_DIS_ASM_H
+#if defined(HAVE_DIS_ASM_H) && defined(OUTPUT_ARCH)
#include "dis-asm.h"