Skip to content

Audit ABI implementations in rustc_target (vs Clang). #65111

Open
@eddyb

Description

@eddyb

In #63649 (comment) I wrote:

The wasm-bindgen mismatch could've been avoided, had we validated the call ABI by comparing it with what Clang does, when it was initially implemented (to be clear, I think I dropped the ball here).

Irrespective of what happens to this PR, I think we should do an audit of all our call ABIs, and institute a policy to prevent this from happening again in the future.
cc @rust-lang/compiler @rust-lang/wg-codegen

The context there was that our wasm32 ABI has been wrong since it was added, and wasm-bindgen now relies on the wrong ABI.

I opened this issue so we don't lose track of this, because I'm sure I will.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ABIArea: Concerning the application binary interface (ABI)A-FFIArea: Foreign function interface (FFI)A-codegenArea: Code generationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-llvmWorking group: LLVM backend code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions