Enable chkstk/alloca intrinsics on x86_64-unknown-uefi

This commit is contained in:
Nicholas Bishop 2023-07-18 21:59:39 -04:00
parent 5cc74482b4
commit 7eca0c2ba3

View file

@ -11,8 +11,7 @@ use core::intrinsics;
intrinsics! {
#[naked]
#[cfg(all(
windows,
target_env = "gnu",
any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn ___chkstk_ms() {
@ -40,8 +39,7 @@ intrinsics! {
#[naked]
#[cfg(all(
windows,
target_env = "gnu",
any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn __alloca() {
@ -54,8 +52,7 @@ intrinsics! {
#[naked]
#[cfg(all(
windows,
target_env = "gnu",
any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn ___chkstk() {