LTO + >=O2 cripples panics


#1

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?

BR,
Denis