On Tuesday 10 November 2026 18:46:37 LIU Hao wrote:
> 在 2026-11-10 18:41, Pali Rohár 写道:
> > Without patch 3 we are getting compile errors on CI for arm32. As I have
> > described in the commit description, the __intrinsic_setjmpex symbol
> > exists for msvc builds in import library and resolves to the
> > vcruntime140.dll which we do not want to use.
> > 
> > > With recent MSVC, the setups seem to be
> > > 
> > >   - x86: Only `_setjmp` exists; `_setjmpex` doesn't.
> > >   - x64: Both `_setjmp` and `_setjmpex` exist and reference to byte-wise 
> > > exact copies.
> > >   - ARM64: `_setjmp` doesn't exist; only `_setjmpex` exists.
> > > 
> > > So it looks like there's even less reason to do so.
> > 
> > That matches what I wrote in some of my commits. arm32 has also
> > _setjmpex symbol like arm64.
> 
> OK maybe that patch can be just checked in. ARM32 CRT libraries can only be
> installed with an old Visual Studio (they are not part of Windows SDK) which
> I'm not willing to do.

I know. And I was frustrated when this my series of these changes was
failing on arm32 in github ci and there was no usable way to debug it
locally or compare with windows sdk (as it does not support it anymore
as you wrote). So stabilizing github ci pipeline took time.

> On ARM64EC these seem to resolve to the same function, unlike x86-64 where
> they resolve to different copied of the same function, so those really are
> the same everywhere.

In msvcrt x86-64 they are also different copied of the same function, so
seems that arm64ec took the msvcrt x86-64 logic.

But in all my tests, the _setjmp and _setjmpex have the same behavior.
New tests in these my changes should cover it.


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

Reply via email to