mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
DWARF mixed versions with LTO on MIPS
On MIPS the DWARF version is stored in 2 bytes with the `.2byte` assembler directive.
This commit is contained in:
parent
e0be1a0262
commit
264f2c6699
@ -1,5 +1,6 @@
|
||||
// This test ensures that if LTO occurs between crates with different DWARF versions, we
|
||||
// will choose the highest DWARF version for the final binary. This matches Clang's behavior.
|
||||
// Note: `.2byte` directive is used on MIPS.
|
||||
|
||||
//@ only-linux
|
||||
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
|
||||
@ -14,6 +15,6 @@ fn main() {
|
||||
}
|
||||
|
||||
// CHECK: .section .debug_info
|
||||
// CHECK-NOT: {{\.(short|hword)}} 2
|
||||
// CHECK-NOT: {{\.(short|hword)}} 4
|
||||
// CHECK: {{\.(short|hword)}} 5
|
||||
// CHECK-NOT: {{\.(short|hword|2byte)}} 2
|
||||
// CHECK-NOT: {{\.(short|hword|2byte)}} 4
|
||||
// CHECK: {{\.(short|hword|2byte)}} 5
|
||||
|
Loading…
Reference in New Issue
Block a user