diff options
| author | bors <bors@rust-lang.org> | 2018-05-01 08:05:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-01 08:05:51 +0000 |
| commit | 0eb68b797b2d2d2ae20093b824f69fe817c96ed1 (patch) | |
| tree | 6ecf044bbcbc9428764478a7936312c9ffc4d8b4 /src/test/codegen | |
| parent | 491512ba1ed37a20b514c216c3eddaa732689de9 (diff) | |
| parent | 7ec045219040876730693543e6cca53120a3236b (diff) | |
| download | rust-0eb68b797b2d2d2ae20093b824f69fe817c96ed1.tar.gz rust-0eb68b797b2d2d2ae20093b824f69fe817c96ed1.zip | |
Auto merge of #48786 - nagisa:fp, r=nikomatsakis
Add force-frame-pointer flag to allow control of frame pointer ommision Rebase of #47152 plus some changes suggested by https://github.com/rust-lang/rust/issues/48785. Fixes #11906 r? @nikomatsakis
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/force-frame-pointers.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/codegen/force-frame-pointers.rs b/src/test/codegen/force-frame-pointers.rs new file mode 100644 index 00000000000..f70e3667198 --- /dev/null +++ b/src/test/codegen/force-frame-pointers.rs @@ -0,0 +1,16 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. +// +// compile-flags: -C no-prepopulate-passes -C force-frame-pointers=y + +#![crate_type="lib"] + +// CHECK: attributes #{{.*}} "no-frame-pointer-elim"="true" +pub fn foo() {} |
