Skip to content

Commit 9219af8

Browse files
authored
Unrolled build for rust-lang#137530
Rollup merge of rust-lang#137530 - LukasWoodtli:gardena/lw/mips_dwarf, r=jieyouxu DWARF mixed versions with LTO on MIPS On MIPS the DWARF version is stored in 2 bytes with the `.2byte` assembler directive.
2 parents 7d8c6e7 + 264f2c6 commit 9219af8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/assembly/dwarf-mixed-versions-lto.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// This test ensures that if LTO occurs between crates with different DWARF versions, we
22
// will choose the highest DWARF version for the final binary. This matches Clang's behavior.
3+
// Note: `.2byte` directive is used on MIPS.
34

45
//@ only-linux
56
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
@@ -14,6 +15,6 @@ fn main() {
1415
}
1516

1617
// CHECK: .section .debug_info
17-
// CHECK-NOT: {{\.(short|hword)}} 2
18-
// CHECK-NOT: {{\.(short|hword)}} 4
19-
// CHECK: {{\.(short|hword)}} 5
18+
// CHECK-NOT: {{\.(short|hword|2byte)}} 2
19+
// CHECK-NOT: {{\.(short|hword|2byte)}} 4
20+
// CHECK: {{\.(short|hword|2byte)}} 5

0 commit comments

Comments
 (0)