Skip to content

Support filter for exception handling #264

Description

@antoyo

rust-lang/rust#104070 (comment)

For this C++:

void b() noexcept {
    f();
}

we get this gimple:

void b ()
{
  try
    {
      f ();
    }
  catch
    {
      <<<eh_must_not_throw (terminate)>>>
    }
}

Seems like we just need to set TRY_CATCH_IS_CLEANUP on TRY_CATCH_EXPR.

EH_FILTER_EXPR might be better.

The test tests/run-make/forced-unwind-terminate-pof tests this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlibgccjitrequires a change in libgccjit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions