diff options
| author | bors <bors@rust-lang.org> | 2024-06-23 11:12:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-23 11:12:11 +0000 |
| commit | c3d7fb398569407350abe044e786bc7890c90397 (patch) | |
| tree | 625b8d3796cb46549d177456dde2ff2ffce5a9a3 /tests/codegen | |
| parent | 05468cf1241ae661c84e43d6a41d7a0ba317eebf (diff) | |
| parent | 761ba5bb073578c6a510482be8338075f0b71493 (diff) | |
| download | rust-c3d7fb398569407350abe044e786bc7890c90397.tar.gz rust-c3d7fb398569407350abe044e786bc7890c90397.zip | |
Auto merge of #124733 - workingjubilee:cant-beleaf-we-dont-have-this, r=saethlin
Support `-Cforce-frame-pointers=non-leaf` Why don't we already support this...? Suggested impl for https://github.com/rust-lang/compiler-team/issues/744
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/force-frame-pointers.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/codegen/force-frame-pointers.rs b/tests/codegen/force-frame-pointers.rs index 84e0bcb39ad..88c918945d6 100644 --- a/tests/codegen/force-frame-pointers.rs +++ b/tests/codegen/force-frame-pointers.rs @@ -1,6 +1,18 @@ -//@ compile-flags: -C no-prepopulate-passes -C force-frame-pointers=y -Copt-level=0 +//@ revisions: Always NonLeaf +//@ [Always] compile-flags: -Cforce-frame-pointers=yes +//@ [NonLeaf] compile-flags: -Cforce-frame-pointers=non-leaf +//@ compile-flags: -Zunstable-options +//@ compile-flags: -C no-prepopulate-passes -Copt-level=0 +//@ [NonLeaf] ignore-illumos +//@ [NonLeaf] ignore-openbsd +//@ [NonLeaf] ignore-x86 +//@ [NonLeaf] ignore-x86_64-apple-darwin +//@ [NonLeaf] ignore-windows-gnu +//@ [NonLeaf] ignore-thumb +// result is platform-dependent based on platform's frame pointer settings #![crate_type = "lib"] -// CHECK: attributes #{{.*}} "frame-pointer"="all" +// Always: attributes #{{.*}} "frame-pointer"="all" +// NonLeaf: attributes #{{.*}} "frame-pointer"="non-leaf" pub fn foo() {} |
