-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
fix Issue 16400 - naked variadic C function emits broken prologue #11550
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "stable + dmd#11550" |
|
This seems like this should target stable. |
| if (funcsym_p.ty() & mTYnaked) | ||
| { // do not generate prolog | ||
| el_free(e); | ||
| e = el_long(TYint, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a 0 literal, no?
why is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 99% sure that this is a kind of noop, as when using the elxxx table there's always an elem expected as result, but later it's eliminated. I want to learn a bit the backend, a confirmation would be nice.
Also look at elinfo(), same trick already used.
|
@NilsLankila I am not sure if this is ready yet? |
|
this is ready to me ;) |
|
This codegen bug is still not targeting stable... |
No description provided.