gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Add `try` intrinsics

Open liushuyu opened this issue 1 year ago • 1 comments

This pull request adds the try intrinsic, making it possible to handle panics.

A new option, -frust-panic is added to specify the panic handling strategy.

Note that currently, only try-catch mechanism is added in this pull request. To correctly handle the panic structures, an unwinder must also be implemented (in the runtime library).

liushuyu avatar Sep 09 '23 20:09 liushuyu

You are also adding support for __builtin_expect

dkm avatar Sep 11 '23 07:09 dkm