Hello, Thank you for reviewing v1 and the valuable feedback! The patch series is supported by changes in binutils. [PATCH v9 0/1] Implement Structured Exception Handling (SEH) on AArch64 https://sourceware.org/pipermail/binutils/2026-June/149662.html
Changes in v2: - Reduce the patch series to 2 patches, as the other patches are no longer needed. - Use SET_OPTION_IF_UNSET for flag_unwind_tables. - Add comments to describe new functions. - Add sorry() diagnostic for SVE offsets. - Support unwinding for nonconsecutive registers. - Exclude PRE_DEC. - Check RTX_FRAME_RELATED_P. - Disable shrink-wrapping. - Support fragmented functions. - Fix unwinding code for a floating-point register pair. - Fix unwinding codes when stack probing is applied. - Support UNSPEC_STP. v1 2024-11-15: This patch series adds SEH, stack unwinding and C++ exceptions implementation to the aarch64-w64-mingw32 target. The patch series is based on "[PATCH v3 0/8] SMALL code model fixes, optimization fixes, LTO, and minimal C++ enablement" patch series, which should be merged next week. https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669003.html Regards, Evgeny Evgeny Karpov (2): Rename SEH functions for reuse in AArch64 aarch64: Add SEH, stack unwinding and C++ exceptions. gcc/common/config/aarch64/aarch64-common.cc | 23 ++ gcc/config/aarch64/aarch64-abi-ms-protos.h | 2 + gcc/config/aarch64/aarch64-abi-ms.cc | 310 ++++++++++++++++++++ gcc/config/aarch64/aarch64-abi-ms.h | 4 + gcc/config/aarch64/aarch64.cc | 17 +- gcc/config/aarch64/cygming.h | 40 ++- gcc/config/i386/cygming.h | 14 +- gcc/config/i386/i386-protos.h | 7 - gcc/config/mingw/winnt.cc | 69 ++--- gcc/config/mingw/winnt.h | 44 +++ libgcc/unwind-seh.c | 41 ++- libstdc++-v3/libsupc++/eh_personality.cc | 15 + 12 files changed, 506 insertions(+), 80 deletions(-)
