mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
f39fa9e4c0
this enables packed-stack just as -mpacked-stack in clang and gcc. packed-stack is needed on s390x for kernel development. Co-authored-by: Ralf Jung <post@ralfj.de>
19 lines
451 B
Rust
19 lines
451 B
Rust
//@ add-minicore
|
|
//@ compile-flags: -Copt-level=3 --crate-type=lib --target=s390x-unknown-none-softfloat -Zpacked-stack
|
|
//@ needs-llvm-components: systemz
|
|
#![feature(s390x_target_feature)]
|
|
#![crate_type = "lib"]
|
|
#![feature(no_core, lang_items)]
|
|
#![no_core]
|
|
|
|
extern crate minicore;
|
|
use minicore::*;
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn test_packedstack() {
|
|
// CHECK: @test_packedstack() unnamed_addr #0
|
|
}
|
|
|
|
// CHECK: attributes #0 = { {{.*}}"packed-stack"{{.*}} }
|