From 389a7a3d7610cec7820ba8a6b45de374078a27bd Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Sat, 30 Jun 2018 03:46:45 +0000 Subject: [PATCH] enhanced the __int128_t check with extra check against va_arg --- moo/Makefile.in | 4 ++-- moo/configure | 8 +++++--- moo/configure.ac | 6 ++++-- moo/kernel/Collect.moo | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/moo/Makefile.in b/moo/Makefile.in index 7777fba..9e029b0 100644 --- a/moo/Makefile.in +++ b/moo/Makefile.in @@ -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/config.sub $(top_srcdir)/ac/install-sh \ $(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \ - ac/compile ac/config.guess ac/config.sub ac/install-sh \ - ac/ltmain.sh ac/missing + ac/compile ac/config.guess ac/config.sub ac/depcomp \ + ac/install-sh ac/ltmain.sh ac/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff --git a/moo/configure b/moo/configure index 0d171ff..42e37ff 100755 --- a/moo/configure +++ b/moo/configure @@ -20667,16 +20667,18 @@ fi if test ${ac_cv_sizeof___int128_t} -gt 0 then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with %" >&5 -$as_echo_n "checking __int128_t with %... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with % and va_arg" >&5 +$as_echo_n "checking __int128_t with % and va_arg... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +#include int main () { volatile __int128_t x, base; + va_list ap; + va_arg(ap, __int128_t); x = (__int128_t)&base; base = (__int128_t)&x; x = x % base; diff --git a/moo/configure.ac b/moo/configure.ac index bcea909..c86f6ac 100644 --- a/moo/configure.ac +++ b/moo/configure.ac @@ -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. if test ${ac_cv_sizeof___int128_t} -gt 0 then - AC_MSG_CHECKING([__int128_t with %]) + AC_MSG_CHECKING([__int128_t with % and va_arg]) AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([], [ + [AC_LANG_PROGRAM([#include ], [ volatile __int128_t x, base; + va_list ap; + va_arg(ap, __int128_t); x = (__int128_t)&base; base = (__int128_t)&x; x = x % base; diff --git a/moo/kernel/Collect.moo b/moo/kernel/Collect.moo index 2d0b6c7..745a3f4 100644 --- a/moo/kernel/Collect.moo +++ b/moo/kernel/Collect.moo @@ -94,7 +94,7 @@ class SequenceableCollection(Collection) } } - ## ------------------------------------------------------------------------------- +## ------------------------------------------------------------------------------- class(#pointer) Array(SequenceableCollection) { method size