KJK::Hyperion schrieb:

What is your plan to make the C front-end of GCC generate the equivalent
of SCOPE_TABLE data? And will it have source-level compatibility with PSEH?
  
Ok, I'm going to explain, because you asked so nice.

#define _SEH_emit_begintry() \
    asm volatile (".cfi_escape 0x1c");

This will emit a user defined cfi code in the .eh_frame section. Current offset from function start can be parsed.
The data will be parsed together with gcc generated unwind info and converted into RUNTIME_FUNCTION, UNWIND_INFO, UNWIND_CODEs and C_SCOPE_TABLE.

And of cause PSEH source level compatability is planned. Although I might go for msvc source compatability and the create a common wrapper if that works.

Regards,
Timo