Skip to content

Add support for unwinding #62

Open
@antoyo

Description

@antoyo
  • 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:

  1. Attempt to reproduce by creating an example without std.
  2. Reduce that to a pure libgccjit example (e.g. without using cg_gcc).
  3. 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).
  4. 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).
  5. If gotos are are forbidden, try to create new #[inline(always)] functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hardlibgccjitrequires a change in libgccjit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions