Open
Description
- Requires adding support for try/catch in libgccjit.
- Requires changing rustc_codegen_ssa API.
Some notes to myself to debug the issue in release mode:
- Attempt to reproduce by creating an example without std.
- Reduce that to a pure libgccjit example (e.g. without using cg_gcc).
- Try to reproduce in C++ directly (to see if it's a bug there as well or if the warn about something or if they have a workaround for gotos if that's the issue).
- Perhaps the fact that gotos and conditions use C labels instead of the special jump labels is the issue (see how Add support for NonNull function attribute #326 is resolved).
- If gotos are are forbidden, try to create new
#[inline(always)]
functions.