-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
extern "C" fn
ABI on aarch64 violates repr(transparent)
#115664
Comments
This also affects arm32 targets like arm-unknown-linux-gnueabihf. |
Yes, that is definitely the issue -- it claims that |
Should be fixed by #115708. |
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Sep 11, 2023
fix homogeneous_aggregate not ignoring some ZST This is an ABI-breaking change, because it fixes bugs in our ABI code. I'm not sure what that means for this PR, we don't really have a process for such changes, do we? I can only hope nobody relied on the old buggy behavior. Fixes rust-lang#115664
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Sep 11, 2023
Rollup merge of rust-lang#115708 - RalfJung:homogeneous, r=davidtwco fix homogeneous_aggregate not ignoring some ZST This is an ABI-breaking change, because it fixes bugs in our ABI code. I'm not sure what that means for this PR, we don't really have a process for such changes, do we? I can only hope nobody relied on the old buggy behavior. Fixes rust-lang#115664
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On aarch64-unknown-linux-gnu (a tier 1 target), consider this testcase:
test1
passes its argument astest2
usesIOW,
test1
uses float registers andtest2
uses int registers. This violates our promise thatrepr(transparent)
types are ABI-compatible.I think this might indicate a bug in the
homogeneous_aggregate
function? At least I don't see anything in the aarch64 adjustment that would be obviously wrong.The text was updated successfully, but these errors were encountered: