Re: Don't use __builtin_setjmp on aarch64 MinGW/Windows - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Don't use __builtin_setjmp on aarch64 MinGW/Windows
Date
Msg-id amjMVEpTddzOvui5@nathan
Whole thread
In response to Don't use __builtin_setjmp on aarch64 MinGW/Windows  ("Greg Burd" <greg@burd.me>)
Responses Re: Adding a stored generated column without long-lived locks
List pgsql-hackers
On Tue, Jul 28, 2026 at 09:10:54AM -0400, Greg Burd wrote:
>   * clang for aarch64-w64-windows-gnu does not implement
>     __builtin_setjmp at all; and

Does clang for x86-64 implement it?

> So on this toolchain the plain setjmp()/longjmp() fallback is not merely
> a compile fix -- it is runtime-correct.  The original MinGW-64
> setjmp/longjmp defect that 146cb3889c3 works around appears to be
> specific to the x86_64 GCC MinGW toolchain and not present in
> clang-aarch64-mingw, which has its own setjmp lowering.  I have not
> tested a GCC-based aarch64 MinGW toolchain.

Testing on aarch64/gcc/mingw seems like an important step.

-- 
nathan



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: hashjoins vs. Bloom filters (yet again)
Next
From: Nathan Bossart
Date:
Subject: Re: add list of major features to the v19 release notes