New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[X86/win32] Large allocas need incremental stack probing #703
Comments
assigned to @asl |
This patch fixed the static case: Now just dynamic alloca's need to be addressed. -Chris |
What does it mean "dynamic alloca"? Where can I catch them? Are there any |
I mean code like this: #include <alloca.h> or: |
Static fix is not so good actually :( It bet it won't work for |
Yes, it's mine :) |
mentioned in issue llvm/llvm-bugzilla-archive#790 |
Extended Description
It looks like windows cannot grow the stack by more than 4K at a time, judging
by some code in the C front-end that LLVM doesn't use:
http://llvm.cs.uiuc.edu/cvsweb/cvsweb.cgi/llvm-gcc/gcc/config/i386/cygwin.asm?rev=1.1.1.1&content-type=text/x-cvsweb-markup
To fix this, we should either support an out-of-line alloca on windows like GCC
does, or inline the relevant code (which is probably a bad idea for something
this large).
-Chris
The text was updated successfully, but these errors were encountered: