[Issue 16098] align(N) not respected for stack variables if N > platform stack alignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 30 04:27:46 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=16098

--- Comment #12 from Walter Bright <bugzilla at digitalmars.com> ---
I'm a little curious how SSoulaimane's solutions fixes things like two base
pointers are required, one for the parameters and one for the rest. Then
there's the problem with nested functions accessing the stack frame of the
outer function - wouldn't two base pointers be needed? What about aligning the
variables in a dynamic closure?

I can't say I understand his solution.

My PR fixes the dynamic closure problem. Once that is merged, I have a followup
fix ready to go that solves the other problems. No changes to the code
generator are required. It's also a lot simpler.

--


More information about the Digitalmars-d-bugs mailing list