On Friday 01 August 2025 12:36:45 LIU Hao wrote:
> 在 2025-7-6 21:44, Pali Rohár 写道:
> > These two symbols _NLG_Dispatch2 and _NLG_Return are available only in
> > 32-bit x86 crt dll libraries, starting in msvcr80.dll.
> > 
> > msvc import library msvcrt.lib from the beginning since Visual C++ 2005
> > contains these symbols without stdcall decoration.
> > 
> > So for compatibility with msvc, do not decorate these symbols with @SIZE
> > suffix (the suffix used for stdcall) in all def files.
> > ---
> >   mingw-w64-crt/lib-common/api-ms-win-crt-private-l1-1-0.def.in | 4 ++--
> >   mingw-w64-crt/lib-common/msvcr120_app.def.in                  | 4 ++--
> >   mingw-w64-crt/lib-common/ucrtbase-common.def.in               | 4 ++--
> >   mingw-w64-crt/lib-common/vcruntime140-common.def.in           | 4 ++--
> >   mingw-w64-crt/lib32/msvcr100.def.in                           | 4 ++--
> >   mingw-w64-crt/lib32/msvcr100d.def.in                          | 4 ++--
> >   mingw-w64-crt/lib32/msvcr110.def.in                           | 4 ++--
> >   mingw-w64-crt/lib32/msvcr110d.def.in                          | 4 ++--
> >   mingw-w64-crt/lib32/msvcr120.def.in                           | 4 ++--
> >   mingw-w64-crt/lib32/msvcr120d.def.in                          | 4 ++--
> >   mingw-w64-crt/lib32/msvcr80.def.in                            | 4 ++--
> >   mingw-w64-crt/lib32/msvcr80d.def.in                           | 4 ++--
> >   mingw-w64-crt/lib32/msvcr90.def.in                            | 4 ++--
> >   mingw-w64-crt/lib32/msvcr90d.def.in                           | 4 ++--
> >   14 files changed, 28 insertions(+), 28 deletions(-)
> > 
> 
> Thanks for the patch. Pushed now. I think this makes sense, although I don't
> know how these functions should be used.

Those are Visual C++ exception handling functions. I think that normally
they are not being called by applications. Mostly for compilers, so
maybe if one day clang (or gcc) would want some kind of compatibility
then it could generate code which will call them. Some info is on blog:
https://devblogs.microsoft.com/oldnewthing/20220126-00/?p=106197


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to