Skip to content

LLVM assertion: "stdcall" with return value on Android #24958

Closed
@tamird

Description

@tamird

main.rs:

#![crate_type="lib"]

pub extern "stdcall" fn sup(_: isize) -> isize {
    0
}

Triggers an LLVM assertion when targeting Android:

$ x86_64-apple-darwin/stage2/bin/rustc main.rs --target=arm-linux-androideabi
Unsupported calling convention
UNREACHABLE executed at /Users/tamird/src/rust/src/llvm/lib/Target/ARM/ARMISelLowering.cpp:1273!
Abort trap: 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-androidOperating system: Android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions