Skip to content

calling native passing struct by value is broken on x86 #2035

Closed
@graydon

Description

@graydon

Followup to #1970.

One of the two tests in struct-return.rs doesn't work on x86. Works on x64 though.

The double/byte/double one winds up feeding garbage memory to the callee. Valgrind gets upset. Program crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions