Skip to content

Commit 296faa8

Browse files
Rollup merge of #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 8f729e9 + 264f2c6 commit 296faa8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: 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)