Skip to content

LTO + >=O2 cripples panics #47965

Closed
Closed
@MageSlayer

Description

@MageSlayer

Hi

I am trying to investigate LTO issue.
It appears when I build my project with opt-level = 2 (or 3) and lto = true.
For some reason panics stop working, I mean __rust_maybe_catch_panic is triggered but never returns.

I am under Linux x64 rust compiler nightly-2017-12-07.
Unfortunately I cannot reproduce it in isolation or on any later compiler (due to other regressions).

Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions