Skip to content
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

alloca() inside expressions does not work if parameters are on the stack #163

Open
totalspectrum opened this issue Jun 17, 2021 · 1 comment

Comments

@totalspectrum
Copy link
Owner

The current implementation of __builtin_alloca() pretty much depends on being able to manipulate the stack at will, but this assumption is false if parameters are being passed on the stack (as they are in the bytecode backend, and also in varargs functions).

@totalspectrum
Copy link
Owner Author

Just to clarify: this becomes an issue if the __builtin_alloca() is itself inside an expression being passed as a parameter. In general __builtin_alloca() should work even inside functions that use stack based variables, because we do have a frame pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant