Fix sizes of repr(C) enums on hexagon
Enums on hexagon use a smallest size (but at least 1 byte) that fits all the enumeration values. This is unlike many other ABIs where enums are at least 32 bits.
This commit is contained in:
parent
3e826bb112
commit
7130e462ee
3 changed files with 476 additions and 0 deletions
|
@ -130,6 +130,7 @@ impl IntegerExt for Integer {
|
|||
|
||||
if repr.c() {
|
||||
match &tcx.sess.target.arch[..] {
|
||||
"hexagon" => min_from_extern = Some(I8),
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue