From 767d70841a998c16a7487f9b286a9a944f69e7b7 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Oct 2010 09:09:45 +0000 Subject: * Makefile.in (ASFLAGS): needs INCFLAGS. * configure.in (rb_cv_dynamic_alloca): check if extra source for dynamic size alloca. * missing/x86_64-chkstk.s (___chkstk): necessary for alloca of amd64-mingw32msvc-gcc on Ubutu. * thread_win32.c (ruby_alloca_chkstk): check stack overflow git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/x86_64-chkstk.s | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 missing/x86_64-chkstk.s (limited to 'missing') diff --git a/missing/x86_64-chkstk.s b/missing/x86_64-chkstk.s new file mode 100644 index 0000000000..6d1227b6d2 --- /dev/null +++ b/missing/x86_64-chkstk.s @@ -0,0 +1,10 @@ + .text +.globl ___chkstk +___chkstk: + pushq %rax + movq %rax, %rcx + movq %rsp, %rdx + call _ruby_alloca_chkstk + popq %rax + subq %rax, %rsp + ret -- cgit v1.2.3