From ad1cd26e3549aa66ee3d78cf66d8861653ec3a50 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Fri, 10 Jul 2026 09:03:52 +0300 Subject: [PATCH] relibc: remove #[unsafe(no_mangle)] from fenv (C impl in toolchain libc) --- src/header/_fenv/mod.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/header/_fenv/mod.rs b/src/header/_fenv/mod.rs index 91680f97dd..15a84c5539 100644 --- a/src/header/_fenv/mod.rs +++ b/src/header/_fenv/mod.rs @@ -24,14 +24,14 @@ pub type fexcept_t = c_int; #[repr(C)] pub struct fenv_t { pub _unused: [u64; 2] } -#[unsafe(no_mangle)] pub unsafe extern "C" fn feclearexcept(_e: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetenv(_ep: *mut fenv_t) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetexceptflag(_fp: *mut fexcept_t, _e: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetround() -> c_int { FE_TONEAREST } -#[unsafe(no_mangle)] pub unsafe extern "C" fn feholdexcept(_ep: *mut fenv_t) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn feraiseexcept(_e: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetenv(_ep: *const fenv_t) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetexceptflag(_fp: *const fexcept_t, _e: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetround(_r: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn fetestexcept(_e: c_int) -> c_int { 0 } -#[unsafe(no_mangle)] pub unsafe extern "C" fn feupdateenv(_ep: *const fenv_t) -> c_int { 0 } +pub unsafe extern "C" fn feclearexcept(_e: c_int) -> c_int { 0 } +pub unsafe extern "C" fn fegetenv(_ep: *mut fenv_t) -> c_int { 0 } +pub unsafe extern "C" fn fegetexceptflag(_fp: *mut fexcept_t, _e: c_int) -> c_int { 0 } +pub unsafe extern "C" fn fegetround() -> c_int { FE_TONEAREST } +pub unsafe extern "C" fn feholdexcept(_ep: *mut fenv_t) -> c_int { 0 } +pub unsafe extern "C" fn feraiseexcept(_e: c_int) -> c_int { 0 } +pub unsafe extern "C" fn fesetenv(_ep: *const fenv_t) -> c_int { 0 } +pub unsafe extern "C" fn fesetexceptflag(_fp: *const fexcept_t, _e: c_int) -> c_int { 0 } +pub unsafe extern "C" fn fesetround(_r: c_int) -> c_int { 0 } +pub unsafe extern "C" fn fetestexcept(_e: c_int) -> c_int { 0 } +pub unsafe extern "C" fn feupdateenv(_ep: *const fenv_t) -> c_int { 0 }