You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the System V AMD64 ABI (used on x86-64 pretty much everywhere except for Windows), this can actually create a calling convention mismatch because the bindings generated by Rust will expect StructWithAtomics to be returned in RAX/RDX, whereas the C++ code will actually use a hidden return parameter. This can be demonstrated here: https://godbolt.org/z/4ErhEjb1v
Input C/C++ Header
Bindgen Invocation
Actual Results
With the System V AMD64 ABI (used on x86-64 pretty much everywhere except for Windows), this can actually create a calling convention mismatch because the bindings generated by Rust will expect
StructWithAtomics
to be returned in RAX/RDX, whereas the C++ code will actually use a hidden return parameter. This can be demonstrated here: https://godbolt.org/z/4ErhEjb1vExpected Results
The text was updated successfully, but these errors were encountered: