在 2024-08-28 03:15, Pali Rohár 写道:
Use gcc's function attribute naked which omits any prologue or epilogue sequences and for x86 is supported by gcc since version 8.0.0. It is also supported by clang. For older gcc versions use existing code.This change fixes compile warning: stdio/_scprintf.c:32:20: warning: ‘init_scprintf’ used but never defined static int __cdecl init_scprintf(const char * __restrict__ format, ...); ^~~~~~~~~~~~~
I think that introducing such complexity for just silencing a warning is an overkill.If this file is only ever compiled for i686 then I would prefer the resolver function to be implemented in assembly. The `ASM_SYM` macro is no longer necessary.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
