-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 rust-lang/compiler-team#744
- Loading branch information
Showing
8 changed files
with
69 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() {} |