Odin
Odin copied to clipboard
Do not generate structured exception handling when not used.
trafficstars
Odin currently produces structured exception handling code even though it is never used.
https://github.com/compiler-explorer/compiler-explorer/issues/4028
Allow users to opt-in with their own handlers.
This just requires adding the following to lb_create_procedure near the other attribute stuff:
if (!ignore_body || is_calling_convention_odin(pt->Proc.calling_convention)) {
lb_add_attribute_to_proc(m, p->value, "nounwind");
}
Only issue is that I'm not if this is a good idea or not yet just because of foreign code.
It appears that SEH is required for seeing the stack trace in debug builds. Without it, no stack trace.