Landing: b0f09b72d9e1
Project / Subsystem
gcc / i386
Date
2026-05-06
Author
Oleg Tolmatcev
Commit
b0f09b72d9e1783e8ccaf2d8c1c72b03e3973f0b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- i386
- patch_id
- —
- commit_hash
- b0f09b72d9e1783e8ccaf2d8c1c72b03e3973f0b
- source_type
- github
- headline
- i386: Keep SEH enabled for Win64 sysv_abi functions
- tldr
- SEH is now kept enabled for Win64 functions compiled with SysV ABI, ensuring consistent exception handling.
- author
- Oleg Tolmatcev
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • i386
- • x86_64
- • seh
- • exception handling
- • windows
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-06T00:00:00.000Z
On Win64, functions compiled with the SysV ABI were losing Structured Exception Handling (SEH) hooks due to TARGET_SEH depending on TARGET_64BIT_MS_ABI. This could result in inconsistent assembly code with .seh_handlerdata outside any .seh_proc block. This commit ensures that TARGET_SEH remains enabled for all 64-bit Windows functions when unwind tables are requested. This ensures consistent SEH prologue and handler state across ABI variants.