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

Fix Proc#call that takes and returns large extern structs by value #14323

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Feb 25, 2024

Fixes #14322 by adding the missing byval and sret LLVM call site attributes. This affects not just the AArch64 ABI, but the Windows x64 ABI too.

@HertzDevil HertzDevil changed the title Fix Proc#call that takes and returns large structs by value Fix Proc#call that takes and returns large extern structs by value Feb 26, 2024
@HertzDevil HertzDevil marked this pull request as draft February 26, 2024 04:08
@HertzDevil HertzDevil marked this pull request as ready for review February 26, 2024 15:01
@straight-shoota straight-shoota added this to the 1.12.0 milestone Feb 26, 2024
@straight-shoota straight-shoota merged commit e3eb178 into crystal-lang:master Feb 27, 2024
57 checks passed
@HertzDevil HertzDevil deleted the bug/proc-call-param-byval branch February 29, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

SIGBUS on AArch64 when Proc returns large extern struct by value
2 participants