diff options
| author | Matthew Maurer <matthew.r.maurer@gmail.com> | 2023-12-12 13:32:43 -0800 |
|---|---|---|
| committer | Florian Schmiderer <florian.schmiderer@posteo.net> | 2024-06-25 18:21:42 +0200 |
| commit | ac7595fdb1ee2aafecdd99cd8a3e56192639ada6 (patch) | |
| tree | 4be37518dc4e5f5366b2920c90573749a75d3b0e /compiler/rustc_interface/src/tests.rs | |
| parent | d929a42a664c026167800801b26d734db925314f (diff) | |
| download | rust-ac7595fdb1ee2aafecdd99cd8a3e56192639ada6.tar.gz rust-ac7595fdb1ee2aafecdd99cd8a3e56192639ada6.zip | |
Support for -Z patchable-function-entry
`-Z patchable-function-entry` works like `-fpatchable-function-entry` on clang/gcc. The arguments are total nop count and function offset. See MCP rust-lang/compiler-team#704
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 6ffc518097e..e4b50e7f5ff 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -813,6 +813,7 @@ fn test_unstable_options_tracking_hash() { tracked!(packed_bundled_libs, true); tracked!(panic_abort_tests, true); tracked!(panic_in_drop, PanicStrategy::Abort); + tracked!(patchable_function_entry, PatchableFunctionEntry::from_nop_count_and_offset(3, 4)); tracked!(plt, Some(true)); tracked!(polonius, Polonius::Legacy); tracked!(precise_enum_drop_elaboration, false); |
