From e4e03883ed315dd21724b003ef1875309627505f Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Wed, 8 May 2024 21:45:13 -0400 Subject: [PATCH] Enable chkstk/alloca intrinsics on i686-unknown-uefi --- library/compiler-builtins/src/x86.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/compiler-builtins/src/x86.rs b/library/compiler-builtins/src/x86.rs index c348d082d9e7..ceec3912eabb 100644 --- a/library/compiler-builtins/src/x86.rs +++ b/library/compiler-builtins/src/x86.rs @@ -10,8 +10,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() { @@ -23,8 +22,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() {