diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-24 19:21:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-24 19:21:48 -0500 |
| commit | 296faa87a8ad03144f239db55320ce0aa0039295 (patch) | |
| tree | 8e53428f2ea46f57facca96b6d1f3cb9cbdf1958 | |
| parent | 8f729e9cff08e6a4c1c1b341cd4a1bf4d85e06c4 (diff) | |
| parent | 264f2c6699552ea3c45b164e098a0cb45b2c5392 (diff) | |
| download | rust-296faa87a8ad03144f239db55320ce0aa0039295.tar.gz rust-296faa87a8ad03144f239db55320ce0aa0039295.zip | |
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.
| -rw-r--r-- | tests/assembly/dwarf-mixed-versions-lto.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-mixed-versions-lto.rs index 5b8e5ff4f4a..f1fc0814c9d 100644 --- a/tests/assembly/dwarf-mixed-versions-lto.rs +++ b/tests/assembly/dwarf-mixed-versions-lto.rs @@ -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 |
