diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-18 05:10:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-18 05:10:52 +0000 |
commit | 0f0c32f24e9556cf3d605df2891841659e6293f6 (patch) | |
tree | d8120fdd026402a40f915ac68c1ff92b5c032965 /tool/m4 | |
parent | ecd2c08a4c8f9e3881d93131456d3ff066bc5de1 (diff) |
mjit.c: no va_copy
* mjit.c (form_args): do not use va_copy, which cannot detect
appropriate way to simulate when cross compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/m4')
-rw-r--r-- | tool/m4/ruby_check_va_copy.m4 | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tool/m4/ruby_check_va_copy.m4 b/tool/m4/ruby_check_va_copy.m4 deleted file mode 100644 index 99d11b5fb9..0000000000 --- a/tool/m4/ruby_check_va_copy.m4 +++ /dev/null @@ -1,30 +0,0 @@ -# -*- Autoconf -*- -AC_DEFUN([RUBY_CHECK_VA_COPY], [ - AS_IF([test "x$rb_cv_va_copy" = x], [dnl - AC_TRY_LINK( -[@%:@include <stdlib.h> -@%:@include <stdarg.h> -@%:@include <string.h> -@%:@define CONFTEST_VA_COPY(dst, src) $2 -void -conftest(int n, ...) -{ - va_list ap, ap2; - int i; - va_start(ap, n); - CONFTEST_VA_COPY(ap2, ap); - for (i = 0; i < n; i++) if ((int)va_arg(ap, int) != n - i - 1) abort(); - va_end(ap); - CONFTEST_VA_COPY(ap, ap2); - for (i = 0; i < n; i++) if ((int)va_arg(ap, int) != n - i - 1) abort(); - va_end(ap); - va_end(ap2); -}], -[ - conftest(10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0); -], - [rb_cv_va_copy="$1"], - [rb_cv_va_copy=""])dnl - ])dnl -])dnl -dnl |