Skip to content

armhf code generation is broken  #10482

Closed
@ibukanov

Description

@ibukanov

I am using armhf build from http://luqman.ca/rust-builds/rust-0.9-pre-3b0d486-arm-unknown-linux-gnueabihf.zip released 2013-11-12. That generates broken code with the following program:

enum Test {
    A(f64),
    B
}

impl Test {
    fn draw(&self) {
        match *self {
            A(x) => println!("A {}", x),
            B => println!("B")
        }
    }
}

fn main() {
    let s = A(0.1);
    s.draw();
}

When running on armhf (Samsung ARM Chromebook) the program just goes into infinite loop instead of printing A 0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateP-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions