Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable all unwinding on -Z no-landing-pads LTO #10916

Merged
merged 1 commit into from
Dec 13, 2013

Commits on Dec 11, 2013

  1. Disable all unwinding on -Z no-landing-pads LTO

    When performing LTO, the rust compiler has an opportunity to completely strip
    all landing pads in all dependent libraries. I've modified the LTO pass to
    recognize the -Z no-landing-pads option when also running an LTO pass to flag
    everything in LLVM as nothrow. I've verified that this prevents any and all
    invoke instructions from being emitted.
    
    I believe that this is one of our best options for moving forward with
    accomodating use-cases where unwinding doesn't really make sense. This will
    allow libraries to be built with landing pads by default but allow usage of them
    in contexts where landing pads aren't necessary.
    
    cc rust-lang#10780
    alexcrichton committed Dec 11, 2013
    9 Configuration menu
    Copy the full SHA
    667d114 View commit details
    Browse the repository at this point in the history