enhanced the __int128_t check with extra check against va_arg
This commit is contained in:
parent
721ce2b540
commit
389a7a3d76
@ -166,8 +166,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \
|
|||||||
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
|
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
|
||||||
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
|
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
|
||||||
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \
|
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \
|
||||||
ac/compile ac/config.guess ac/config.sub ac/install-sh \
|
ac/compile ac/config.guess ac/config.sub ac/depcomp \
|
||||||
ac/ltmain.sh ac/missing
|
ac/install-sh ac/ltmain.sh ac/missing
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
top_distdir = $(distdir)
|
top_distdir = $(distdir)
|
||||||
|
8
moo/configure
vendored
8
moo/configure
vendored
@ -20667,16 +20667,18 @@ fi
|
|||||||
|
|
||||||
if test ${ac_cv_sizeof___int128_t} -gt 0
|
if test ${ac_cv_sizeof___int128_t} -gt 0
|
||||||
then
|
then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with %" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with % and va_arg" >&5
|
||||||
$as_echo_n "checking __int128_t with %... " >&6; }
|
$as_echo_n "checking __int128_t with % and va_arg... " >&6; }
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
#include <stdarg.h>
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
volatile __int128_t x, base;
|
volatile __int128_t x, base;
|
||||||
|
va_list ap;
|
||||||
|
va_arg(ap, __int128_t);
|
||||||
x = (__int128_t)&base;
|
x = (__int128_t)&base;
|
||||||
base = (__int128_t)&x;
|
base = (__int128_t)&x;
|
||||||
x = x % base;
|
x = x % base;
|
||||||
|
@ -458,10 +458,12 @@ dnl Changing ac_cv_sizeof___int128_t here doesn't corret SIZEOF___INT128_T
|
|||||||
dnl since it's already generated. It only affects MOO_SIZEOF___INT128_T below.
|
dnl since it's already generated. It only affects MOO_SIZEOF___INT128_T below.
|
||||||
if test ${ac_cv_sizeof___int128_t} -gt 0
|
if test ${ac_cv_sizeof___int128_t} -gt 0
|
||||||
then
|
then
|
||||||
AC_MSG_CHECKING([__int128_t with %])
|
AC_MSG_CHECKING([__int128_t with % and va_arg])
|
||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM([], [
|
[AC_LANG_PROGRAM([#include <stdarg.h>], [
|
||||||
volatile __int128_t x, base;
|
volatile __int128_t x, base;
|
||||||
|
va_list ap;
|
||||||
|
va_arg(ap, __int128_t);
|
||||||
x = (__int128_t)&base;
|
x = (__int128_t)&base;
|
||||||
base = (__int128_t)&x;
|
base = (__int128_t)&x;
|
||||||
x = x % base;
|
x = x % base;
|
||||||
|
@ -94,7 +94,7 @@ class SequenceableCollection(Collection)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
## -------------------------------------------------------------------------------
|
## -------------------------------------------------------------------------------
|
||||||
class(#pointer) Array(SequenceableCollection)
|
class(#pointer) Array(SequenceableCollection)
|
||||||
{
|
{
|
||||||
method size
|
method size
|
||||||
|
Loading…
Reference in New Issue
Block a user