Skip to content

repr(C) on enums is unsound on hexagon-unknown-linux-gnu #82100

Closed
@mahkoh

Description

@mahkoh

Enums on hexagon-unknown-linux-gnu are packed by default: https://godbolt.org/z/q49s5v

This is not implemented in rustc atm

if repr.c() {
match &tcx.sess.target.arch[..] {
// WARNING: the ARM EABI has two variants; the one corresponding
// to `at_least == I32` appears to be used on Linux and NetBSD,
// but some systems may use the variant corresponding to no
// lower bound. However, we don't run on those yet...?
"arm" => min_from_extern = Some(I32),
_ => min_from_extern = Some(I32),
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions