On Wed, 2 Feb 2022, Jinoh Kang wrote:
On 2/2/22 00:25, Martin Storsjö wrote:
On Tue, 1 Feb 2022, Jacek Caban wrote:
On 2/1/22 13:57, Paul Gofman wrote:
Not sure though if that is good enough though, the prior understanding was that these sort of fixes are waiting for mingw .seh support.
It's not just SEH support that's missing in mingw (in fact, GCC mingw already supports SEH on x86_64 and llvm-mingw on all targets),
Just a minor clarification here - the above statement is true for x86_64 and aarch64; clang uses SEH on those architectures in both MSVC and mingw mode.
For i386, clang does use the MSVC exception handling mechanism in MSVC mode, but in mingw mode, it uses dwarf instead (and can use sjlj as an alternative).
For arm32, it doesn't support SEH generation at all.
ARM32 certainly supports SEH.
(In MSVC mode, it just refuses to generate unwind information,
I guess you might have mistaken; it does just fine.
We were talking about Clang in MSVC mode, not MSVC itself. MSVC does indeed support SEH for ARM32, but Clang doesn't support generating that, yet at least.
// Martin